Lines Matching refs:tfm

118 static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key,  in geode_setkey_cip()  argument
121 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_setkey_cip()
133 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in geode_setkey_cip()
141 op->fallback.cip->base.crt_flags |= (tfm->crt_flags & CRYPTO_TFM_REQ_MASK); in geode_setkey_cip()
145 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in geode_setkey_cip()
146 tfm->crt_flags |= (op->fallback.cip->base.crt_flags & CRYPTO_TFM_RES_MASK); in geode_setkey_cip()
151 static int geode_setkey_blk(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_blk() argument
154 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_setkey_blk()
166 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in geode_setkey_blk()
174 op->fallback.blk->base.crt_flags |= (tfm->crt_flags & CRYPTO_TFM_REQ_MASK); in geode_setkey_blk()
178 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; in geode_setkey_blk()
179 tfm->crt_flags |= (op->fallback.blk->base.crt_flags & CRYPTO_TFM_RES_MASK); in geode_setkey_blk()
189 struct crypto_blkcipher *tfm; in fallback_blk_dec() local
190 struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm); in fallback_blk_dec()
192 tfm = desc->tfm; in fallback_blk_dec()
193 desc->tfm = op->fallback.blk; in fallback_blk_dec()
197 desc->tfm = tfm; in fallback_blk_dec()
205 struct crypto_blkcipher *tfm; in fallback_blk_enc() local
206 struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm); in fallback_blk_enc()
208 tfm = desc->tfm; in fallback_blk_enc()
209 desc->tfm = op->fallback.blk; in fallback_blk_enc()
213 desc->tfm = tfm; in fallback_blk_enc()
218 geode_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_encrypt() argument
220 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_encrypt()
239 geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_decrypt() argument
241 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in geode_decrypt()
258 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip() argument
260 const char *name = crypto_tfm_alg_name(tfm); in fallback_init_cip()
261 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in fallback_init_cip()
274 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip() argument
276 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in fallback_exit_cip()
310 struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm); in geode_cbc_decrypt()
342 struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm); in geode_cbc_encrypt()
368 static int fallback_init_blk(struct crypto_tfm *tfm) in fallback_init_blk() argument
370 const char *name = crypto_tfm_alg_name(tfm); in fallback_init_blk()
371 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in fallback_init_blk()
384 static void fallback_exit_blk(struct crypto_tfm *tfm) in fallback_exit_blk() argument
386 struct geode_aes_op *op = crypto_tfm_ctx(tfm); in fallback_exit_blk()
423 struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm); in geode_ecb_decrypt()
453 struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm); in geode_ecb_encrypt()