Lines Matching refs:tfm

312 	struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req);  in starfive_rsa_enc()  local
313 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm); in starfive_rsa_enc()
322 akcipher_request_set_tfm(req, tfm); in starfive_rsa_enc()
343 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in starfive_rsa_dec() local
344 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm); in starfive_rsa_dec()
353 akcipher_request_set_tfm(req, tfm); in starfive_rsa_dec()
475 static int starfive_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_setkey() argument
478 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm); in starfive_rsa_setkey()
526 static int starfive_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_set_pub_key() argument
529 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm); in starfive_rsa_set_pub_key()
536 return starfive_rsa_setkey(tfm, key, keylen, false); in starfive_rsa_set_pub_key()
539 static int starfive_rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_set_priv_key() argument
542 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm); in starfive_rsa_set_priv_key()
549 return starfive_rsa_setkey(tfm, key, keylen, true); in starfive_rsa_set_priv_key()
552 static unsigned int starfive_rsa_max_size(struct crypto_akcipher *tfm) in starfive_rsa_max_size() argument
554 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm); in starfive_rsa_max_size()
562 static int starfive_rsa_init_tfm(struct crypto_akcipher *tfm) in starfive_rsa_init_tfm() argument
564 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm); in starfive_rsa_init_tfm()
576 akcipher_set_reqsize(tfm, sizeof(struct starfive_cryp_request_ctx) + in starfive_rsa_init_tfm()
582 static void starfive_rsa_exit_tfm(struct crypto_akcipher *tfm) in starfive_rsa_exit_tfm() argument
584 struct starfive_cryp_ctx *ctx = akcipher_tfm_ctx(tfm); in starfive_rsa_exit_tfm()