Lines Matching refs:nbytes
65 unsigned int nbytes = walk->nbytes; in crypto_ctr_crypt_final() local
68 crypto_xor(keystream, src, nbytes); in crypto_ctr_crypt_final()
69 memcpy(dst, keystream, nbytes); in crypto_ctr_crypt_final()
83 unsigned int nbytes = walk->nbytes; in crypto_ctr_crypt_segment() local
95 } while ((nbytes -= bsize) >= bsize); in crypto_ctr_crypt_segment()
97 return nbytes; in crypto_ctr_crypt_segment()
107 unsigned int nbytes = walk->nbytes; in crypto_ctr_crypt_inplace() local
122 } while ((nbytes -= bsize) >= bsize); in crypto_ctr_crypt_inplace()
124 return nbytes; in crypto_ctr_crypt_inplace()
129 unsigned int nbytes) in crypto_ctr_crypt() argument
138 blkcipher_walk_init(&walk, dst, src, nbytes); in crypto_ctr_crypt()
141 while (walk.nbytes >= bsize) { in crypto_ctr_crypt()
143 nbytes = crypto_ctr_crypt_inplace(&walk, child); in crypto_ctr_crypt()
145 nbytes = crypto_ctr_crypt_segment(&walk, child); in crypto_ctr_crypt()
147 err = blkcipher_walk_done(desc, &walk, nbytes); in crypto_ctr_crypt()
150 if (walk.nbytes) { in crypto_ctr_crypt()
300 ablkcipher_request_set_crypt(subreq, req->src, req->dst, req->nbytes, in crypto_rfc3686_crypt()