Lines Matching refs:tfm
89 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_aes_setkey() argument
92 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_setkey()
97 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ppc_aes_setkey()
121 static int ppc_xts_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_xts_setkey() argument
124 struct ppc_xts_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_xts_setkey()
127 err = xts_check_key(tfm, in_key, key_len); in ppc_xts_setkey()
136 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ppc_xts_setkey()
163 static void ppc_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_encrypt() argument
165 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_encrypt()
172 static void ppc_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_decrypt() argument
174 struct ppc_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ppc_aes_decrypt()
184 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_ecb_encrypt()
212 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_ecb_decrypt()
240 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_cbc_encrypt()
268 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_cbc_decrypt()
296 struct ppc_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_ctr_crypt()
326 struct ppc_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_xts_encrypt()
357 struct ppc_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ppc_xts_decrypt()