Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/crypto/virtio/
Dvirtio_crypto_akcipher_algs.c33 struct virtio_crypto_rsa_ctx rsa_ctx; member
372 struct virtio_crypto_rsa_ctx *rsa_ctx = &ctx->rsa_ctx; in virtio_crypto_rsa_set_key() local
382 mpi_free(rsa_ctx->n); in virtio_crypto_rsa_set_key()
383 rsa_ctx->n = NULL; in virtio_crypto_rsa_set_key()
396 rsa_ctx->n = mpi_read_raw_data(rsa_key.n, rsa_key.n_sz); in virtio_crypto_rsa_set_key()
397 if (!rsa_ctx->n) in virtio_crypto_rsa_set_key()
468 struct virtio_crypto_rsa_ctx *rsa_ctx = &ctx->rsa_ctx; in virtio_crypto_rsa_max_size() local
470 return mpi_get_size(rsa_ctx->n); in virtio_crypto_rsa_max_size()
488 struct virtio_crypto_rsa_ctx *rsa_ctx = &ctx->rsa_ctx; in virtio_crypto_rsa_exit_tfm() local
492 mpi_free(rsa_ctx->n); in virtio_crypto_rsa_exit_tfm()
[all …]