Lines Matching refs:tfm
92 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_aes_setkey() argument
95 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_setkey()
100 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ppc_aes_setkey()
124 static int ppc_xts_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_xts_setkey() argument
127 struct ppc_xts_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_xts_setkey()
134 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ppc_xts_setkey()
161 static void ppc_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_encrypt() argument
163 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_encrypt()
170 static void ppc_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_decrypt() argument
172 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_decrypt()
182 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_ecb_encrypt()
210 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_ecb_decrypt()
238 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_cbc_encrypt()
266 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_cbc_decrypt()
294 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_ctr_crypt()
324 struct ppc_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_xts_encrypt()
355 struct ppc_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_xts_decrypt()