Searched refs:soft_tfm (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 54 struct crypto_akcipher *soft_tfm; member 728 akcipher_request_set_tfm(req, ctx->rsa.soft_tfm); in hpre_rsa_enc() 776 akcipher_request_set_tfm(req, ctx->rsa.soft_tfm); in hpre_rsa_dec() 1060 ret = crypto_akcipher_set_pub_key(ctx->rsa.soft_tfm, key, keylen); in hpre_rsa_setpubkey() 1073 ret = crypto_akcipher_set_priv_key(ctx->rsa.soft_tfm, key, keylen); in hpre_rsa_setprivkey() 1087 return crypto_akcipher_maxsize(ctx->rsa.soft_tfm); in hpre_rsa_max_size() 1097 ctx->rsa.soft_tfm = crypto_alloc_akcipher("rsa-generic", 0, 0); in hpre_rsa_init_tfm() 1098 if (IS_ERR(ctx->rsa.soft_tfm)) { in hpre_rsa_init_tfm() 1100 return PTR_ERR(ctx->rsa.soft_tfm); in hpre_rsa_init_tfm() 1105 crypto_free_akcipher(ctx->rsa.soft_tfm); in hpre_rsa_init_tfm() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 75 struct crypto_akcipher *soft_tfm; member 805 akcipher_request_set_tfm(req, ctx->rsa.soft_tfm); in hpre_rsa_enc() 853 akcipher_request_set_tfm(req, ctx->rsa.soft_tfm); in hpre_rsa_dec() 1137 ret = crypto_akcipher_set_pub_key(ctx->rsa.soft_tfm, key, keylen); in hpre_rsa_setpubkey() 1150 ret = crypto_akcipher_set_priv_key(ctx->rsa.soft_tfm, key, keylen); in hpre_rsa_setprivkey() 1164 return crypto_akcipher_maxsize(ctx->rsa.soft_tfm); in hpre_rsa_max_size() 1174 ctx->rsa.soft_tfm = crypto_alloc_akcipher("rsa-generic", 0, 0); in hpre_rsa_init_tfm() 1175 if (IS_ERR(ctx->rsa.soft_tfm)) { in hpre_rsa_init_tfm() 1177 return PTR_ERR(ctx->rsa.soft_tfm); in hpre_rsa_init_tfm() 1185 crypto_free_akcipher(ctx->rsa.soft_tfm); in hpre_rsa_init_tfm() [all...] |
Completed in 5 milliseconds