Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/crypto/virtio/
H A Dvirtio_crypto_akcipher_algs.c33 struct virtio_crypto_rsa_ctx rsa_ctx; member
369 struct virtio_crypto_rsa_ctx *rsa_ctx = &ctx->rsa_ctx; in virtio_crypto_rsa_set_key() local
379 mpi_free(rsa_ctx->n); in virtio_crypto_rsa_set_key()
380 rsa_ctx->n = NULL; in virtio_crypto_rsa_set_key()
393 rsa_ctx->n = mpi_read_raw_data(rsa_key.n, rsa_key.n_sz); in virtio_crypto_rsa_set_key()
394 if (!rsa_ctx->n) in virtio_crypto_rsa_set_key()
465 struct virtio_crypto_rsa_ctx *rsa_ctx = &ctx->rsa_ctx; in virtio_crypto_rsa_max_size() local
467 return mpi_get_size(rsa_ctx in virtio_crypto_rsa_max_size()
485 struct virtio_crypto_rsa_ctx *rsa_ctx = &ctx->rsa_ctx; virtio_crypto_rsa_exit_tfm() local
[all...]
/kernel/linux/linux-6.6/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 in virtio_crypto_rsa_max_size()
489 struct virtio_crypto_rsa_ctx *rsa_ctx = &ctx->rsa_ctx; virtio_crypto_rsa_exit_tfm() local
[all...]

Completed in 3 milliseconds