Lines Matching refs:nbytes
49 unsigned int nbytes = walk->nbytes; in crypto_cbc_encrypt_segment() local
61 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_segment()
63 return nbytes; in crypto_cbc_encrypt_segment()
73 unsigned int nbytes = walk->nbytes; in crypto_cbc_encrypt_inplace() local
83 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace()
87 return nbytes; in crypto_cbc_encrypt_inplace()
92 unsigned int nbytes) in crypto_cbc_encrypt() argument
100 blkcipher_walk_init(&walk, dst, src, nbytes); in crypto_cbc_encrypt()
103 while ((nbytes = walk.nbytes)) { 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()
121 unsigned int nbytes = walk->nbytes; in crypto_cbc_decrypt_segment() local
133 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_decrypt_segment()
137 return nbytes; in crypto_cbc_decrypt_segment()
147 unsigned int nbytes = walk->nbytes; in crypto_cbc_decrypt_inplace() local
152 src += nbytes - (nbytes & (bsize - 1)) - bsize; in crypto_cbc_decrypt_inplace()
157 if ((nbytes -= bsize) < bsize) in crypto_cbc_decrypt_inplace()
166 return nbytes; in crypto_cbc_decrypt_inplace()
171 unsigned int nbytes) in crypto_cbc_decrypt() argument
179 blkcipher_walk_init(&walk, dst, src, nbytes); in crypto_cbc_decrypt()
182 while ((nbytes = walk.nbytes)) { 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()