Lines Matching refs:tfm
130 static int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ce_aes_setkey() argument
133 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ce_aes_setkey()
140 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ce_aes_setkey()
149 static int xts_set_key(struct crypto_tfm *tfm, const u8 *in_key, in xts_set_key() argument
152 struct crypto_aes_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_set_key()
162 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in xts_set_key()
169 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_encrypt()
192 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_decrypt()
215 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_encrypt()
239 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_decrypt()
263 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ctr_encrypt()
306 struct crypto_aes_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_encrypt()
331 struct crypto_aes_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_decrypt()