Lines Matching refs:nbytes

103 	while (walk.nbytes >= AES_BLOCK_SIZE) {  in __ecb_crypt()
104 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in __ecb_crypt()
106 if (walk.nbytes < walk.total) in __ecb_crypt()
115 walk.nbytes - blocks * AES_BLOCK_SIZE); in __ecb_crypt()
163 while (walk.nbytes >= AES_BLOCK_SIZE) { in cbc_encrypt()
164 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in cbc_encrypt()
172 err = skcipher_walk_done(&walk, walk.nbytes % AES_BLOCK_SIZE); in cbc_encrypt()
186 while (walk.nbytes >= AES_BLOCK_SIZE) { in cbc_decrypt()
187 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in cbc_decrypt()
189 if (walk.nbytes < walk.total) in cbc_decrypt()
199 walk.nbytes - blocks * AES_BLOCK_SIZE); in cbc_decrypt()
215 while (walk.nbytes > 0) { in ctr_encrypt()
216 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in ctr_encrypt()
219 if (walk.nbytes < walk.total) { in ctr_encrypt()
241 walk.nbytes - blocks * AES_BLOCK_SIZE); in ctr_encrypt()
282 int nbytes, err; in __xts_crypt() local
310 while (walk.nbytes >= AES_BLOCK_SIZE) { in __xts_crypt()
311 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in __xts_crypt()
313 if (walk.nbytes < walk.total || walk.nbytes % AES_BLOCK_SIZE) in __xts_crypt()
319 nbytes = walk.nbytes; in __xts_crypt()
334 nbytes -= blocks * AES_BLOCK_SIZE; in __xts_crypt()
337 if (walk.nbytes == walk.total && nbytes > 0) in __xts_crypt()
341 err = skcipher_walk_done(&walk, nbytes); in __xts_crypt()
361 nbytes = walk.nbytes; in __xts_crypt()
367 nbytes, ctx->twkey, walk.iv, first ?: 2); in __xts_crypt()
370 nbytes, ctx->twkey, walk.iv, first ?: 2); in __xts_crypt()