Lines Matching refs:tfm
110 static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_cip() argument
113 struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in geode_setkey_cip()
131 (tfm->crt_flags & CRYPTO_TFM_REQ_MASK); in geode_setkey_cip()
136 static int geode_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in geode_setkey_skcipher() argument
139 struct geode_aes_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in geode_setkey_skcipher()
158 crypto_skcipher_get_flags(tfm) & in geode_setkey_skcipher()
164 geode_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_encrypt() argument
166 const struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in geode_encrypt()
179 geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_decrypt() argument
181 const struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in geode_decrypt()
192 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip() argument
194 const char *name = crypto_tfm_alg_name(tfm); in fallback_init_cip()
195 struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in fallback_init_cip()
208 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip() argument
210 struct geode_aes_tfm_ctx *tctx = crypto_tfm_ctx(tfm); in fallback_exit_cip()
238 static int geode_init_skcipher(struct crypto_skcipher *tfm) in geode_init_skcipher() argument
240 const char *name = crypto_tfm_alg_name(&tfm->base); in geode_init_skcipher()
241 struct geode_aes_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in geode_init_skcipher()
251 crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + in geode_init_skcipher()
256 static void geode_exit_skcipher(struct crypto_skcipher *tfm) in geode_exit_skcipher() argument
258 struct geode_aes_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in geode_exit_skcipher()
265 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in geode_skcipher_crypt() local
266 const struct geode_aes_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in geode_skcipher_crypt()