Lines Matching refs:tfm
216 int lrw_twofish_setkey(struct crypto_tfm *tfm, const u8 *key, in lrw_twofish_setkey() argument
219 struct twofish_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_twofish_setkey()
223 &tfm->crt_flags); in lrw_twofish_setkey()
234 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_encrypt()
251 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_decrypt()
265 void lrw_twofish_exit_tfm(struct crypto_tfm *tfm) in lrw_twofish_exit_tfm() argument
267 struct twofish_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_twofish_exit_tfm()
273 int xts_twofish_setkey(struct crypto_tfm *tfm, const u8 *key, in xts_twofish_setkey() argument
276 struct twofish_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_twofish_setkey()
277 u32 *flags = &tfm->crt_flags; in xts_twofish_setkey()
302 struct twofish_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_encrypt()
320 struct twofish_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_decrypt()