Lines Matching refs:nbytes
28 unsigned int nbytes; in glue_ecb_req_128bit() local
33 while ((nbytes = walk.nbytes)) { in glue_ecb_req_128bit()
40 &walk, fpu_enabled, nbytes); in glue_ecb_req_128bit()
44 if (nbytes < func_bytes) in glue_ecb_req_128bit()
52 nbytes -= func_bytes; in glue_ecb_req_128bit()
53 } while (nbytes >= func_bytes); in glue_ecb_req_128bit()
55 if (nbytes < bsize) in glue_ecb_req_128bit()
58 err = skcipher_walk_done(&walk, nbytes); in glue_ecb_req_128bit()
72 unsigned int nbytes; in glue_cbc_encrypt_req_128bit() local
77 while ((nbytes = walk.nbytes)) { in glue_cbc_encrypt_req_128bit()
88 nbytes -= bsize; in glue_cbc_encrypt_req_128bit()
89 } while (nbytes >= bsize); in glue_cbc_encrypt_req_128bit()
92 err = skcipher_walk_done(&walk, nbytes); in glue_cbc_encrypt_req_128bit()
105 unsigned int nbytes; in glue_cbc_decrypt_req_128bit() local
110 while ((nbytes = walk.nbytes)) { in glue_cbc_decrypt_req_128bit()
118 &walk, fpu_enabled, nbytes); in glue_cbc_decrypt_req_128bit()
120 src += nbytes / bsize - 1; in glue_cbc_decrypt_req_128bit()
121 dst += nbytes / bsize - 1; in glue_cbc_decrypt_req_128bit()
129 if (nbytes < func_bytes) in glue_cbc_decrypt_req_128bit()
140 nbytes -= func_bytes; in glue_cbc_decrypt_req_128bit()
141 if (nbytes < bsize) in glue_cbc_decrypt_req_128bit()
146 } while (nbytes >= func_bytes); in glue_cbc_decrypt_req_128bit()
151 err = skcipher_walk_done(&walk, nbytes); in glue_cbc_decrypt_req_128bit()
166 unsigned int nbytes; in glue_ctr_req_128bit() local
171 while ((nbytes = walk.nbytes) >= bsize) { in glue_ctr_req_128bit()
179 &walk, fpu_enabled, nbytes); in glue_ctr_req_128bit()
187 if (nbytes < func_bytes) in glue_ctr_req_128bit()
197 nbytes -= func_bytes; in glue_ctr_req_128bit()
198 } while (nbytes >= func_bytes); in glue_ctr_req_128bit()
200 if (nbytes < bsize) in glue_ctr_req_128bit()
205 err = skcipher_walk_done(&walk, nbytes); in glue_ctr_req_128bit()
210 if (nbytes) { in glue_ctr_req_128bit()
215 memcpy(&tmp, walk.src.virt.addr, nbytes); in glue_ctr_req_128bit()
219 memcpy(walk.dst.virt.addr, &tmp, nbytes); in glue_ctr_req_128bit()
234 unsigned int nbytes = walk->nbytes; in __glue_xts_req_128bit() local
245 if (nbytes >= func_bytes) { in __glue_xts_req_128bit()
253 nbytes -= func_bytes; in __glue_xts_req_128bit()
254 } while (nbytes >= func_bytes); in __glue_xts_req_128bit()
256 if (nbytes < bsize) in __glue_xts_req_128bit()
262 return nbytes; in __glue_xts_req_128bit()
275 unsigned int nbytes, tail; in glue_xts_req_128bit() local
296 nbytes = walk.nbytes; in glue_xts_req_128bit()
303 nbytes < bsize ? bsize : nbytes); in glue_xts_req_128bit()
308 while (nbytes) { in glue_xts_req_128bit()
309 nbytes = __glue_xts_req_128bit(gctx, crypt_ctx, &walk); in glue_xts_req_128bit()
311 err = skcipher_walk_done(&walk, nbytes); in glue_xts_req_128bit()
312 nbytes = walk.nbytes; in glue_xts_req_128bit()