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()
60 crypto_blkcipher_get_flags((struct crypto_blkcipher *) tfm)); in p8_aes_cbc_init()
66 static void p8_aes_cbc_exit(struct crypto_tfm *tfm) in p8_aes_cbc_exit() argument
68 struct p8_aes_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_cbc_exit()
76 static int p8_aes_cbc_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_cbc_setkey() argument
80 struct p8_aes_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in p8_aes_cbc_setkey()
100 crypto_blkcipher_tfm(desc->tfm)); in p8_aes_cbc_encrypt()
102 .tfm = ctx->fallback, in p8_aes_cbc_encrypt()
136 crypto_blkcipher_tfm(desc->tfm)); in p8_aes_cbc_decrypt()
138 .tfm = ctx->fallback, in p8_aes_cbc_decrypt()