Lines Matching refs:tfm
73 static inline struct rsa_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key() argument
75 return akcipher_tfm_ctx(tfm); in rsa_get_key()
80 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc() local
81 const struct rsa_key *pkey = rsa_get_key(tfm); in rsa_enc()
125 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec() local
126 const struct rsa_key *pkey = rsa_get_key(tfm); in rsa_dec()
169 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_sign() local
170 const struct rsa_key *pkey = rsa_get_key(tfm); in rsa_sign()
214 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_verify() local
215 const struct rsa_key *pkey = rsa_get_key(tfm); in rsa_verify()
274 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key() argument
277 struct rsa_key *pkey = akcipher_tfm_ctx(tfm); in rsa_set_pub_key()
291 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key() argument
294 struct rsa_key *pkey = akcipher_tfm_ctx(tfm); in rsa_set_priv_key()
308 static int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size() argument
310 struct rsa_key *pkey = akcipher_tfm_ctx(tfm); in rsa_max_size()
315 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm() argument
317 struct rsa_key *pkey = akcipher_tfm_ctx(tfm); in rsa_exit_tfm()