Lines Matching refs:tfm
94 static inline struct aes_ctx *aes_ctx(struct crypto_tfm *tfm) in aes_ctx() argument
96 return aes_ctx_common(crypto_tfm_ctx(tfm)); in aes_ctx()
99 static inline struct aes_ctx *blk_aes_ctx(struct crypto_blkcipher *tfm) in blk_aes_ctx() argument
101 return aes_ctx_common(crypto_blkcipher_ctx(tfm)); in blk_aes_ctx()
104 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
107 struct aes_ctx *ctx = aes_ctx(tfm); in aes_set_key()
109 u32 *flags = &tfm->crt_flags; in aes_set_key()
298 static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_encrypt() argument
300 struct aes_ctx *ctx = aes_ctx(tfm); in aes_encrypt()
310 static void aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_decrypt() argument
312 struct aes_ctx *ctx = aes_ctx(tfm); in aes_decrypt()
346 struct aes_ctx *ctx = blk_aes_ctx(desc->tfm); in ecb_aes_encrypt()
375 struct aes_ctx *ctx = blk_aes_ctx(desc->tfm); in ecb_aes_decrypt()
425 struct aes_ctx *ctx = blk_aes_ctx(desc->tfm); in cbc_aes_encrypt()
456 struct aes_ctx *ctx = blk_aes_ctx(desc->tfm); in cbc_aes_decrypt()