Lines Matching refs:nbytes
223 int nbytes; in shash_ahash_update() local
225 for (nbytes = crypto_hash_walk_first(req, &walk); nbytes > 0; in shash_ahash_update()
226 nbytes = crypto_hash_walk_done(&walk, nbytes)) in shash_ahash_update()
227 nbytes = crypto_shash_update(desc, walk.data, nbytes); in shash_ahash_update()
229 return nbytes; in shash_ahash_update()
246 int nbytes; in shash_ahash_finup() local
248 nbytes = crypto_hash_walk_first(req, &walk); in shash_ahash_finup()
249 if (!nbytes) in shash_ahash_finup()
253 nbytes = crypto_hash_walk_last(&walk) ? in shash_ahash_finup()
254 crypto_shash_finup(desc, walk.data, nbytes, in shash_ahash_finup()
256 crypto_shash_update(desc, walk.data, nbytes); in shash_ahash_finup()
257 nbytes = crypto_hash_walk_done(&walk, nbytes); in shash_ahash_finup()
258 } while (nbytes > 0); in shash_ahash_finup()
260 return nbytes; in shash_ahash_finup()
279 unsigned int nbytes = req->nbytes; in shash_ahash_digest() local
282 if (nbytes < min(sg->length, ((unsigned int)(PAGE_SIZE)) - offset)) { in shash_ahash_digest()
286 err = crypto_shash_digest(desc, data + offset, nbytes, in shash_ahash_digest()
396 int nbytes; in shash_compat_update() local
398 for (nbytes = crypto_hash_walk_first_compat(hdesc, &walk, sg, len); in shash_compat_update()
399 nbytes > 0; nbytes = crypto_hash_walk_done(&walk, nbytes)) in shash_compat_update()
400 nbytes = crypto_shash_update(desc, walk.data, nbytes); in shash_compat_update()
402 return nbytes; in shash_compat_update()
413 unsigned int nbytes, u8 *out) in shash_compat_digest() argument
418 if (nbytes < min(sg->length, ((unsigned int)(PAGE_SIZE)) - offset)) { in shash_compat_digest()
426 err = crypto_shash_digest(desc, data + offset, nbytes, out); in shash_compat_digest()
436 err = shash_compat_update(hdesc, sg, nbytes); in shash_compat_digest()