Home
last modified time | relevance | path

Searched refs:rsa_ctx (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/crypto/virtio/
H A Dvirtio_crypto_akcipher_algs.c33 struct virtio_crypto_rsa_ctx rsa_ctx; member
373 struct virtio_crypto_rsa_ctx *rsa_ctx = &ctx->rsa_ctx; in virtio_crypto_rsa_set_key() local
383 mpi_free(rsa_ctx->n); in virtio_crypto_rsa_set_key()
384 rsa_ctx->n = NULL; in virtio_crypto_rsa_set_key()
397 rsa_ctx->n = mpi_read_raw_data(rsa_key.n, rsa_key.n_sz); in virtio_crypto_rsa_set_key()
398 if (!rsa_ctx->n) in virtio_crypto_rsa_set_key()
469 struct virtio_crypto_rsa_ctx *rsa_ctx = &ctx->rsa_ctx; in virtio_crypto_rsa_max_size() local
471 return mpi_get_size(rsa_ctx->n); in virtio_crypto_rsa_max_size()
489 struct virtio_crypto_rsa_ctx *rsa_ctx = &ctx->rsa_ctx; in virtio_crypto_rsa_exit_tfm() local
493 mpi_free(rsa_ctx->n); in virtio_crypto_rsa_exit_tfm()
[all …]