Lines Matching defs:nbytes
41 unsigned int nbytes;
46 while ((nbytes = walk.nbytes) > 0) {
51 nblocks = nbytes / SM4_BLOCK_SIZE;
60 err = skcipher_walk_done(&walk, nbytes % SM4_BLOCK_SIZE);
87 unsigned int nbytes;
92 while ((nbytes = walk.nbytes) > 0) {
97 while (nbytes >= SM4_BLOCK_SIZE) {
103 nbytes -= SM4_BLOCK_SIZE;
108 err = skcipher_walk_done(&walk, nbytes);
119 unsigned int nbytes;
124 while ((nbytes = walk.nbytes) > 0) {
129 nblocks = nbytes / SM4_BLOCK_SIZE;
139 err = skcipher_walk_done(&walk, nbytes % SM4_BLOCK_SIZE);
150 unsigned int nbytes;
155 while ((nbytes = walk.nbytes) > 0) {
161 while (nbytes >= SM4_BLOCK_SIZE) {
167 nbytes -= SM4_BLOCK_SIZE;
173 if (walk.nbytes == walk.total && nbytes > 0) {
175 crypto_xor_cpy(dst, src, keystream, nbytes);
176 nbytes = 0;
179 err = skcipher_walk_done(&walk, nbytes);
190 unsigned int nbytes;
195 while ((nbytes = walk.nbytes) > 0) {
200 nblocks = nbytes / SM4_BLOCK_SIZE;
211 nbytes -= nblocks * SM4_BLOCK_SIZE;
215 if (walk.nbytes == walk.total && nbytes > 0) {
219 crypto_xor_cpy(dst, src, keystream, nbytes);
220 nbytes = 0;
223 err = skcipher_walk_done(&walk, nbytes);
234 unsigned int nbytes;
239 while ((nbytes = walk.nbytes) > 0) {
244 nblocks = nbytes / SM4_BLOCK_SIZE;
255 nbytes -= nblocks * SM4_BLOCK_SIZE;
259 if (walk.nbytes == walk.total && nbytes > 0) {
264 crypto_xor_cpy(dst, src, keystream, nbytes);
265 nbytes = 0;
268 err = skcipher_walk_done(&walk, nbytes);