Lines Matching refs:tfm
485 static int aspeed_acry_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in aspeed_acry_rsa_setkey() argument
488 struct aspeed_acry_ctx *ctx = akcipher_tfm_ctx(tfm); in aspeed_acry_rsa_setkey()
532 static int aspeed_acry_rsa_set_pub_key(struct crypto_akcipher *tfm, in aspeed_acry_rsa_set_pub_key() argument
536 struct aspeed_acry_ctx *ctx = akcipher_tfm_ctx(tfm); in aspeed_acry_rsa_set_pub_key()
543 return aspeed_acry_rsa_setkey(tfm, key, keylen, 0); in aspeed_acry_rsa_set_pub_key()
546 static int aspeed_acry_rsa_set_priv_key(struct crypto_akcipher *tfm, in aspeed_acry_rsa_set_priv_key() argument
550 struct aspeed_acry_ctx *ctx = akcipher_tfm_ctx(tfm); in aspeed_acry_rsa_set_priv_key()
557 return aspeed_acry_rsa_setkey(tfm, key, keylen, 1); in aspeed_acry_rsa_set_priv_key()
560 static unsigned int aspeed_acry_rsa_max_size(struct crypto_akcipher *tfm) in aspeed_acry_rsa_max_size() argument
562 struct aspeed_acry_ctx *ctx = akcipher_tfm_ctx(tfm); in aspeed_acry_rsa_max_size()
570 static int aspeed_acry_rsa_init_tfm(struct crypto_akcipher *tfm) in aspeed_acry_rsa_init_tfm() argument
572 struct aspeed_acry_ctx *ctx = akcipher_tfm_ctx(tfm); in aspeed_acry_rsa_init_tfm()
573 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in aspeed_acry_rsa_init_tfm()
574 const char *name = crypto_tfm_alg_name(&tfm->base); in aspeed_acry_rsa_init_tfm()
592 static void aspeed_acry_rsa_exit_tfm(struct crypto_akcipher *tfm) in aspeed_acry_rsa_exit_tfm() argument
594 struct aspeed_acry_ctx *ctx = akcipher_tfm_ctx(tfm); in aspeed_acry_rsa_exit_tfm()