Lines Matching refs:nbytes
87 unsigned int nbytes, bool encrypt) in __ecb_crypt() argument
99 blkcipher_walk_init(&walk, dst, src, nbytes); in __ecb_crypt()
108 while ((nbytes = walk.nbytes)) { in __ecb_crypt()
109 unsigned int block_len = nbytes & CAMELLIA_BLOCK_MASK; in __ecb_crypt()
119 nbytes &= CAMELLIA_BLOCK_SIZE - 1; in __ecb_crypt()
120 err = blkcipher_walk_done(desc, &walk, nbytes); in __ecb_crypt()
128 unsigned int nbytes) in ecb_encrypt() argument
130 return __ecb_crypt(desc, dst, src, nbytes, true); in ecb_encrypt()
135 unsigned int nbytes) in ecb_decrypt() argument
137 return __ecb_crypt(desc, dst, src, nbytes, false); in ecb_decrypt()
150 unsigned int nbytes) in cbc_encrypt() argument
162 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_encrypt()
168 while ((nbytes = walk.nbytes)) { in cbc_encrypt()
169 unsigned int block_len = nbytes & CAMELLIA_BLOCK_MASK; in cbc_encrypt()
180 nbytes &= CAMELLIA_BLOCK_SIZE - 1; in cbc_encrypt()
181 err = blkcipher_walk_done(desc, &walk, nbytes); in cbc_encrypt()
189 unsigned int nbytes) in cbc_decrypt() argument
201 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_decrypt()
207 while ((nbytes = walk.nbytes)) { in cbc_decrypt()
208 unsigned int block_len = nbytes & CAMELLIA_BLOCK_MASK; in cbc_decrypt()
219 nbytes &= CAMELLIA_BLOCK_SIZE - 1; in cbc_decrypt()
220 err = blkcipher_walk_done(desc, &walk, nbytes); in cbc_decrypt()