Lines Matching refs:tfm

116 static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key,  in geode_setkey_cip()  argument
119 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_setkey_cip()
131 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in geode_setkey_cip()
139 op->fallback.cip->base.crt_flags |= (tfm->crt_flags & CRYPTO_TFM_REQ_MASK); in geode_setkey_cip()
143 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in geode_setkey_cip()
144 tfm->crt_flags |= (op->fallback.cip->base.crt_flags & CRYPTO_TFM_RES_MASK); in geode_setkey_cip()
149 static int geode_setkey_blk(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_blk() argument
152 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_setkey_blk()
164 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in geode_setkey_blk()
172 op->fallback.blk->base.crt_flags |= (tfm->crt_flags & CRYPTO_TFM_REQ_MASK); in geode_setkey_blk()
176 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in geode_setkey_blk()
177 tfm->crt_flags |= (op->fallback.blk->base.crt_flags & CRYPTO_TFM_RES_MASK); in geode_setkey_blk()
187 struct crypto_blkcipher *tfm; in fallback_blk_dec() local
188 struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm); in fallback_blk_dec()
190 tfm = desc->tfm; in fallback_blk_dec()
191 desc->tfm = op->fallback.blk; in fallback_blk_dec()
195 desc->tfm = tfm; in fallback_blk_dec()
203 struct crypto_blkcipher *tfm; in fallback_blk_enc() local
204 struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm); in fallback_blk_enc()
206 tfm = desc->tfm; in fallback_blk_enc()
207 desc->tfm = op->fallback.blk; in fallback_blk_enc()
211 desc->tfm = tfm; in fallback_blk_enc()
216 geode_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_encrypt() argument
218 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_encrypt()
237 geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_decrypt() argument
239 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_decrypt()
256 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip() argument
258 const char *name = crypto_tfm_alg_name(tfm); in fallback_init_cip()
259 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in fallback_init_cip()
272 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip() argument
274 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in fallback_exit_cip()
308 struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm); in geode_cbc_decrypt()
340 struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm); in geode_cbc_encrypt()
366 static int fallback_init_blk(struct crypto_tfm *tfm) in fallback_init_blk() argument
368 const char *name = crypto_tfm_alg_name(tfm); in fallback_init_blk()
369 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in fallback_init_blk()
382 static void fallback_exit_blk(struct crypto_tfm *tfm) in fallback_exit_blk() argument
384 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in fallback_exit_blk()
421 struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm); in geode_ecb_decrypt()
451 struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm); in geode_ecb_encrypt()