Lines Matching refs:tfm

54 static void camellia_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)  in camellia_encrypt()  argument
56 camellia_enc_blk(crypto_tfm_ctx(tfm), dst, src); in camellia_encrypt()
59 static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in camellia_decrypt() argument
61 camellia_dec_blk(crypto_tfm_ctx(tfm), dst, src); in camellia_decrypt()
1275 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *in_key, in camellia_setkey() argument
1278 return __camellia_setkey(crypto_tfm_ctx(tfm), in_key, key_len, in camellia_setkey()
1279 &tfm->crt_flags); in camellia_setkey()
1440 int lrw_camellia_setkey(struct crypto_tfm *tfm, const u8 *key, in lrw_camellia_setkey() argument
1443 struct camellia_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_camellia_setkey()
1448 &tfm->crt_flags); in lrw_camellia_setkey()
1460 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_encrypt()
1477 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_decrypt()
1491 void lrw_camellia_exit_tfm(struct crypto_tfm *tfm) in lrw_camellia_exit_tfm() argument
1493 struct camellia_lrw_ctx *ctx = crypto_tfm_ctx(tfm); in lrw_camellia_exit_tfm()
1499 int xts_camellia_setkey(struct crypto_tfm *tfm, const u8 *key, in xts_camellia_setkey() argument
1502 struct camellia_xts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_camellia_setkey()
1503 u32 *flags = &tfm->crt_flags; in xts_camellia_setkey()
1528 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_encrypt()
1546 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_decrypt()