Lines Matching refs:tfm
44 struct crypto_cipher *tfm) in crypto_cbc_encrypt_segment() argument
47 crypto_cipher_alg(tfm)->cia_encrypt; in crypto_cbc_encrypt_segment()
48 int bsize = crypto_cipher_blocksize(tfm); in crypto_cbc_encrypt_segment()
56 fn(crypto_cipher_tfm(tfm), dst, iv); in crypto_cbc_encrypt_segment()
68 struct crypto_cipher *tfm) in crypto_cbc_encrypt_inplace() argument
71 crypto_cipher_alg(tfm)->cia_encrypt; in crypto_cbc_encrypt_inplace()
72 int bsize = crypto_cipher_blocksize(tfm); in crypto_cbc_encrypt_inplace()
79 fn(crypto_cipher_tfm(tfm), src, src); in crypto_cbc_encrypt_inplace()
95 struct crypto_blkcipher *tfm = desc->tfm; in crypto_cbc_encrypt() local
96 struct crypto_cbc_ctx *ctx = crypto_blkcipher_ctx(tfm); in crypto_cbc_encrypt()
116 struct crypto_cipher *tfm) in crypto_cbc_decrypt_segment() argument
119 crypto_cipher_alg(tfm)->cia_decrypt; in crypto_cbc_decrypt_segment()
120 int bsize = crypto_cipher_blocksize(tfm); in crypto_cbc_decrypt_segment()
127 fn(crypto_cipher_tfm(tfm), dst, src); in crypto_cbc_decrypt_segment()
142 struct crypto_cipher *tfm) in crypto_cbc_decrypt_inplace() argument
145 crypto_cipher_alg(tfm)->cia_decrypt; in crypto_cbc_decrypt_inplace()
146 int bsize = crypto_cipher_blocksize(tfm); in crypto_cbc_decrypt_inplace()
156 fn(crypto_cipher_tfm(tfm), src, src); in crypto_cbc_decrypt_inplace()
174 struct crypto_blkcipher *tfm = desc->tfm; in crypto_cbc_decrypt() local
175 struct crypto_cbc_ctx *ctx = crypto_blkcipher_ctx(tfm); in crypto_cbc_decrypt()
193 static int crypto_cbc_init_tfm(struct crypto_tfm *tfm) in crypto_cbc_init_tfm() argument
195 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_cbc_init_tfm()
197 struct crypto_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_cbc_init_tfm()
208 static void crypto_cbc_exit_tfm(struct crypto_tfm *tfm) in crypto_cbc_exit_tfm() argument
210 struct crypto_cbc_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_cbc_exit_tfm()