Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c78 struct crypto_akcipher *soft_tfm; member
810 akcipher_request_set_tfm(req, ctx->rsa.soft_tfm); in hpre_rsa_enc()
858 akcipher_request_set_tfm(req, ctx->rsa.soft_tfm); in hpre_rsa_dec()
1142 ret = crypto_akcipher_set_pub_key(ctx->rsa.soft_tfm, key, keylen); in hpre_rsa_setpubkey()
1155 ret = crypto_akcipher_set_priv_key(ctx->rsa.soft_tfm, key, keylen); in hpre_rsa_setprivkey()
1169 return crypto_akcipher_maxsize(ctx->rsa.soft_tfm); in hpre_rsa_max_size()
1179 ctx->rsa.soft_tfm = crypto_alloc_akcipher("rsa-generic", 0, 0); in hpre_rsa_init_tfm()
1180 if (IS_ERR(ctx->rsa.soft_tfm)) { in hpre_rsa_init_tfm()
1182 return PTR_ERR(ctx->rsa.soft_tfm); in hpre_rsa_init_tfm()
1190 crypto_free_akcipher(ctx->rsa.soft_tfm); in hpre_rsa_init_tfm()
[all …]