Lines Matching refs:tfm

47 				       struct crypto_cipher *tfm)  in crypto_pcbc_encrypt_segment()  argument
50 crypto_cipher_alg(tfm)->cia_encrypt; in crypto_pcbc_encrypt_segment()
51 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_encrypt_segment()
59 fn(crypto_cipher_tfm(tfm), dst, iv); in crypto_pcbc_encrypt_segment()
72 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_inplace() argument
75 crypto_cipher_alg(tfm)->cia_encrypt; in crypto_pcbc_encrypt_inplace()
76 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_encrypt_inplace()
85 fn(crypto_cipher_tfm(tfm), src, iv); in crypto_pcbc_encrypt_inplace()
102 struct crypto_blkcipher *tfm = desc->tfm; in crypto_pcbc_encrypt() local
103 struct crypto_pcbc_ctx *ctx = crypto_blkcipher_ctx(tfm); in crypto_pcbc_encrypt()
125 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_segment() argument
128 crypto_cipher_alg(tfm)->cia_decrypt; in crypto_pcbc_decrypt_segment()
129 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_decrypt_segment()
136 fn(crypto_cipher_tfm(tfm), dst, src); in crypto_pcbc_decrypt_segment()
152 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_inplace() argument
155 crypto_cipher_alg(tfm)->cia_decrypt; in crypto_pcbc_decrypt_inplace()
156 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_decrypt_inplace()
164 fn(crypto_cipher_tfm(tfm), src, src); in crypto_pcbc_decrypt_inplace()
182 struct crypto_blkcipher *tfm = desc->tfm; in crypto_pcbc_decrypt() local
183 struct crypto_pcbc_ctx *ctx = crypto_blkcipher_ctx(tfm); in crypto_pcbc_decrypt()
203 static int crypto_pcbc_init_tfm(struct crypto_tfm *tfm) in crypto_pcbc_init_tfm() argument
205 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_pcbc_init_tfm()
207 struct crypto_pcbc_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_pcbc_init_tfm()
218 static void crypto_pcbc_exit_tfm(struct crypto_tfm *tfm) in crypto_pcbc_exit_tfm() argument
220 struct crypto_pcbc_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_pcbc_exit_tfm()