Lines Matching refs:tfm
39 static int p8_aes_cbc_init(struct crypto_tfm *tfm) in p8_aes_cbc_init() argument
43 struct p8_aes_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_cbc_init()
45 if (!(alg = crypto_tfm_alg_name(tfm))) { in p8_aes_cbc_init()
63 crypto_blkcipher_get_flags((struct crypto_blkcipher *)tfm)); in p8_aes_cbc_init()
69 static void p8_aes_cbc_exit(struct crypto_tfm *tfm) in p8_aes_cbc_exit() argument
71 struct p8_aes_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_cbc_exit()
79 static int p8_aes_cbc_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_cbc_setkey() argument
83 struct p8_aes_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_cbc_setkey()
105 crypto_tfm_ctx(crypto_blkcipher_tfm(desc->tfm)); in p8_aes_cbc_encrypt()
107 .tfm = ctx->fallback, in p8_aes_cbc_encrypt()
146 crypto_tfm_ctx(crypto_blkcipher_tfm(desc->tfm)); in p8_aes_cbc_decrypt()
148 .tfm = ctx->fallback, in p8_aes_cbc_decrypt()