Lines Matching refs:tfm
247 static int lrw_cast6_setkey(struct crypto_tfm *tfm, const u8 *key, in lrw_cast6_setkey() argument
250 struct cast6_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_cast6_setkey()
254 &tfm->crt_flags); in lrw_cast6_setkey()
264 struct cast6_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_encrypt()
290 struct cast6_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_decrypt()
313 static void lrw_exit_tfm(struct crypto_tfm *tfm) in lrw_exit_tfm() argument
315 struct cast6_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_exit_tfm()
325 static int xts_cast6_setkey(struct crypto_tfm *tfm, const u8 *key, in xts_cast6_setkey() argument
328 struct cast6_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_cast6_setkey()
329 u32 *flags = &tfm->crt_flags; in xts_cast6_setkey()
353 struct cast6_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_encrypt()
363 struct cast6_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_decrypt()