Lines Matching refs:nbytes

105 	while (walk.nbytes >= AES_BLOCK_SIZE) {  in __ecb_crypt()
106 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in __ecb_crypt()
108 if (walk.nbytes < walk.total) in __ecb_crypt()
117 walk.nbytes - blocks * AES_BLOCK_SIZE); in __ecb_crypt()
165 while (walk.nbytes >= AES_BLOCK_SIZE) { in cbc_encrypt()
166 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in cbc_encrypt()
174 err = skcipher_walk_done(&walk, walk.nbytes % AES_BLOCK_SIZE); in cbc_encrypt()
188 while (walk.nbytes >= AES_BLOCK_SIZE) { in cbc_decrypt()
189 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in cbc_decrypt()
191 if (walk.nbytes < walk.total) in cbc_decrypt()
201 walk.nbytes - blocks * AES_BLOCK_SIZE); in cbc_decrypt()
216 while (walk.nbytes > 0) { in ctr_encrypt()
217 int blocks = (walk.nbytes / AES_BLOCK_SIZE) & ~7; in ctr_encrypt()
218 int nbytes = walk.nbytes % (8 * AES_BLOCK_SIZE); in ctr_encrypt() local
229 if (nbytes && walk.nbytes == walk.total) { in ctr_encrypt()
231 nbytes, walk.iv); in ctr_encrypt()
232 nbytes = 0; in ctr_encrypt()
235 err = skcipher_walk_done(&walk, nbytes); in ctr_encrypt()
276 int nbytes, err; in __xts_crypt() local
304 while (walk.nbytes >= AES_BLOCK_SIZE) { in __xts_crypt()
305 int blocks = (walk.nbytes / AES_BLOCK_SIZE) & ~7; in __xts_crypt()
308 nbytes = walk.nbytes; in __xts_crypt()
323 nbytes -= blocks * AES_BLOCK_SIZE; in __xts_crypt()
325 if (walk.nbytes == walk.total && nbytes > 0) { in __xts_crypt()
328 ctx->key.rounds, nbytes, in __xts_crypt()
332 ctx->key.rounds, nbytes, in __xts_crypt()
334 nbytes = first = 0; in __xts_crypt()
337 err = skcipher_walk_done(&walk, nbytes); in __xts_crypt()
357 nbytes = walk.nbytes; in __xts_crypt()
362 nbytes, ctx->twkey, walk.iv, first); in __xts_crypt()
365 nbytes, ctx->twkey, walk.iv, first); in __xts_crypt()