Lines Matching refs:tfm
31 static unsigned int crypto_cfb_bsize(struct crypto_skcipher *tfm) in crypto_cfb_bsize() argument
33 return crypto_cipher_blocksize(skcipher_cipher_simple(tfm)); in crypto_cfb_bsize()
36 static void crypto_cfb_encrypt_one(struct crypto_skcipher *tfm, in crypto_cfb_encrypt_one() argument
39 crypto_cipher_encrypt_one(skcipher_cipher_simple(tfm), dst, src); in crypto_cfb_encrypt_one()
44 struct crypto_skcipher *tfm) in crypto_cfb_final() argument
46 const unsigned long alignmask = crypto_skcipher_alignmask(tfm); in crypto_cfb_final()
54 crypto_cfb_encrypt_one(tfm, iv, stream); in crypto_cfb_final()
59 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_segment() argument
61 const unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_encrypt_segment()
68 crypto_cfb_encrypt_one(tfm, iv, dst); in crypto_cfb_encrypt_segment()
82 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_inplace() argument
84 const unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_encrypt_inplace()
91 crypto_cfb_encrypt_one(tfm, iv, tmp); in crypto_cfb_encrypt_inplace()
105 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_encrypt() local
107 unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_encrypt()
114 err = crypto_cfb_encrypt_inplace(&walk, tfm); in crypto_cfb_encrypt()
116 err = crypto_cfb_encrypt_segment(&walk, tfm); in crypto_cfb_encrypt()
121 crypto_cfb_final(&walk, tfm); in crypto_cfb_encrypt()
129 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_segment() argument
131 const unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_decrypt_segment()
138 crypto_cfb_encrypt_one(tfm, iv, dst); in crypto_cfb_decrypt_segment()
152 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_inplace() argument
154 const unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_decrypt_inplace()
161 crypto_cfb_encrypt_one(tfm, iv, tmp); in crypto_cfb_decrypt_inplace()
171 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_blocks() argument
174 return crypto_cfb_decrypt_inplace(walk, tfm); in crypto_cfb_decrypt_blocks()
176 return crypto_cfb_decrypt_segment(walk, tfm); in crypto_cfb_decrypt_blocks()
181 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_decrypt() local
183 const unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_decrypt()
189 err = crypto_cfb_decrypt_blocks(&walk, tfm); in crypto_cfb_decrypt()
194 crypto_cfb_final(&walk, tfm); in crypto_cfb_decrypt()