Lines Matching refs:done
284 unsigned int partial, done; in padlock_sha1_update_nano() local
293 done = 0; in padlock_sha1_update_nano()
301 done = -partial; in padlock_sha1_update_nano()
303 done + SHA1_BLOCK_SIZE); in padlock_sha1_update_nano()
308 done += SHA1_BLOCK_SIZE; in padlock_sha1_update_nano()
309 src = data + done; in padlock_sha1_update_nano()
313 if (len - done >= SHA1_BLOCK_SIZE) { in padlock_sha1_update_nano()
317 "c"((unsigned long)((len - done) / SHA1_BLOCK_SIZE))); in padlock_sha1_update_nano()
318 done += ((len - done) - (len - done) % SHA1_BLOCK_SIZE); in padlock_sha1_update_nano()
319 src = data + done; in padlock_sha1_update_nano()
324 memcpy(sctx->buffer + partial, src, len - done); in padlock_sha1_update_nano()
368 unsigned int partial, done; in padlock_sha256_update_nano() local
377 done = 0; in padlock_sha256_update_nano()
385 done = -partial; in padlock_sha256_update_nano()
387 done + SHA256_BLOCK_SIZE); in padlock_sha256_update_nano()
392 done += SHA256_BLOCK_SIZE; in padlock_sha256_update_nano()
393 src = data + done; in padlock_sha256_update_nano()
397 if (len - done >= SHA256_BLOCK_SIZE) { in padlock_sha256_update_nano()
401 "c"((unsigned long)((len - done) / 64))); in padlock_sha256_update_nano()
402 done += ((len - done) - (len - done) % 64); in padlock_sha256_update_nano()
403 src = data + done; in padlock_sha256_update_nano()
408 memcpy(sctx->buf + partial, src, len - done); in padlock_sha256_update_nano()