• Home
  • Raw
  • Download

Lines Matching refs:nbytes

36 				   unsigned int nbytes)  in cast5_fpu_begin()  argument
39 walk, fpu_enabled, nbytes); in cast5_fpu_begin()
54 unsigned int nbytes; in ecb_crypt() local
60 while ((nbytes = walk.nbytes)) { in ecb_crypt()
64 fpu_enabled = cast5_fpu_begin(fpu_enabled, &walk, nbytes); in ecb_crypt()
67 if (nbytes >= bsize * CAST5_PARALLEL_BLOCKS) { in ecb_crypt()
74 nbytes -= bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt()
75 } while (nbytes >= bsize * CAST5_PARALLEL_BLOCKS); in ecb_crypt()
77 if (nbytes < bsize) in ecb_crypt()
89 nbytes -= bsize; in ecb_crypt()
90 } while (nbytes >= bsize); in ecb_crypt()
93 err = skcipher_walk_done(&walk, nbytes); in ecb_crypt()
116 unsigned int nbytes; in cbc_encrypt() local
121 while ((nbytes = walk.nbytes)) { in cbc_encrypt()
132 nbytes -= bsize; in cbc_encrypt()
133 } while (nbytes >= bsize); in cbc_encrypt()
136 err = skcipher_walk_done(&walk, nbytes); in cbc_encrypt()
146 unsigned int nbytes = walk->nbytes; in __cbc_decrypt() local
152 src += nbytes / bsize - 1; in __cbc_decrypt()
153 dst += nbytes / bsize - 1; in __cbc_decrypt()
158 if (nbytes >= bsize * CAST5_PARALLEL_BLOCKS) { in __cbc_decrypt()
160 nbytes -= bsize * (CAST5_PARALLEL_BLOCKS - 1); in __cbc_decrypt()
166 nbytes -= bsize; in __cbc_decrypt()
167 if (nbytes < bsize) in __cbc_decrypt()
173 } while (nbytes >= bsize * CAST5_PARALLEL_BLOCKS); in __cbc_decrypt()
180 nbytes -= bsize; in __cbc_decrypt()
181 if (nbytes < bsize) in __cbc_decrypt()
193 return nbytes; in __cbc_decrypt()
202 unsigned int nbytes; in cbc_decrypt() local
207 while ((nbytes = walk.nbytes)) { in cbc_decrypt()
208 fpu_enabled = cast5_fpu_begin(fpu_enabled, &walk, nbytes); in cbc_decrypt()
209 nbytes = __cbc_decrypt(ctx, &walk); in cbc_decrypt()
210 err = skcipher_walk_done(&walk, nbytes); in cbc_decrypt()
223 unsigned int nbytes = walk->nbytes; in ctr_crypt_final() local
226 crypto_xor_cpy(dst, keystream, src, nbytes); in ctr_crypt_final()
235 unsigned int nbytes = walk->nbytes; in __ctr_crypt() local
240 if (nbytes >= bsize * CAST5_PARALLEL_BLOCKS) { in __ctr_crypt()
247 nbytes -= bsize * CAST5_PARALLEL_BLOCKS; in __ctr_crypt()
248 } while (nbytes >= bsize * CAST5_PARALLEL_BLOCKS); in __ctr_crypt()
250 if (nbytes < bsize) in __ctr_crypt()
269 nbytes -= bsize; in __ctr_crypt()
270 } while (nbytes >= bsize); in __ctr_crypt()
273 return nbytes; in __ctr_crypt()
282 unsigned int nbytes; in ctr_crypt() local
287 while ((nbytes = walk.nbytes) >= CAST5_BLOCK_SIZE) { in ctr_crypt()
288 fpu_enabled = cast5_fpu_begin(fpu_enabled, &walk, nbytes); in ctr_crypt()
289 nbytes = __ctr_crypt(&walk, ctx); in ctr_crypt()
290 err = skcipher_walk_done(&walk, nbytes); in ctr_crypt()
295 if (walk.nbytes) { in ctr_crypt()