Lines Matching refs:tfm
88 static inline struct rsa_mpi_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key() argument
90 return akcipher_tfm_ctx(tfm); in rsa_get_key()
95 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc() local
96 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_enc()
134 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec() local
135 const struct rsa_mpi_key *pkey = rsa_get_key(tfm); in rsa_dec()
236 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key() argument
239 struct rsa_mpi_key *mpi_key = akcipher_tfm_ctx(tfm); in rsa_set_pub_key()
275 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key() argument
278 struct rsa_mpi_key *mpi_key = akcipher_tfm_ctx(tfm); in rsa_set_priv_key()
338 static unsigned int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size() argument
340 struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); in rsa_max_size()
345 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm() argument
347 struct rsa_mpi_key *pkey = akcipher_tfm_ctx(tfm); in rsa_exit_tfm()