Lines Matching refs:desc
42 static int crypto_cbc_encrypt_segment(struct blkcipher_desc *desc, in crypto_cbc_encrypt_segment() argument
66 static int crypto_cbc_encrypt_inplace(struct blkcipher_desc *desc, in crypto_cbc_encrypt_inplace() argument
90 static int crypto_cbc_encrypt(struct blkcipher_desc *desc, in crypto_cbc_encrypt() argument
95 struct crypto_blkcipher *tfm = desc->tfm; in crypto_cbc_encrypt()
101 err = blkcipher_walk_virt(desc, &walk); in crypto_cbc_encrypt()
105 nbytes = crypto_cbc_encrypt_inplace(desc, &walk, child); in crypto_cbc_encrypt()
107 nbytes = crypto_cbc_encrypt_segment(desc, &walk, child); in crypto_cbc_encrypt()
108 err = blkcipher_walk_done(desc, &walk, nbytes); in crypto_cbc_encrypt()
114 static int crypto_cbc_decrypt_segment(struct blkcipher_desc *desc, in crypto_cbc_decrypt_segment() argument
140 static int crypto_cbc_decrypt_inplace(struct blkcipher_desc *desc, in crypto_cbc_decrypt_inplace() argument
169 static int crypto_cbc_decrypt(struct blkcipher_desc *desc, in crypto_cbc_decrypt() argument
174 struct crypto_blkcipher *tfm = desc->tfm; in crypto_cbc_decrypt()
180 err = blkcipher_walk_virt(desc, &walk); in crypto_cbc_decrypt()
184 nbytes = crypto_cbc_decrypt_inplace(desc, &walk, child); in crypto_cbc_decrypt()
186 nbytes = crypto_cbc_decrypt_segment(desc, &walk, child); in crypto_cbc_decrypt()
187 err = blkcipher_walk_done(desc, &walk, nbytes); in crypto_cbc_decrypt()