Lines Matching defs:tfm
310 static inline struct aes_ctx *aes_ctx(struct crypto_tfm *tfm)
312 return aes_ctx_common(crypto_tfm_ctx(tfm));
315 static inline struct aes_ctx *blk_aes_ctx(struct crypto_blkcipher *tfm)
317 return aes_ctx_common(crypto_blkcipher_ctx(tfm));
320 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
323 struct aes_ctx *ctx = aes_ctx(tfm);
325 u32 *flags = &tfm->crt_flags;
443 static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)
445 struct aes_ctx *ctx = aes_ctx(tfm);
449 static void aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)
451 struct aes_ctx *ctx = aes_ctx(tfm);
480 struct aes_ctx *ctx = blk_aes_ctx(desc->tfm);
502 struct aes_ctx *ctx = blk_aes_ctx(desc->tfm);
546 struct aes_ctx *ctx = blk_aes_ctx(desc->tfm);
570 struct aes_ctx *ctx = blk_aes_ctx(desc->tfm);