Lines Matching refs:partial
284 unsigned int partial, done; in padlock_sha1_update_nano() local
291 partial = sctx->count & 0x3f; in padlock_sha1_update_nano()
297 if ((partial + len) >= SHA1_BLOCK_SIZE) { in padlock_sha1_update_nano()
300 if (partial) { in padlock_sha1_update_nano()
301 done = -partial; in padlock_sha1_update_nano()
302 memcpy(sctx->buffer + partial, data, in padlock_sha1_update_nano()
321 partial = 0; in padlock_sha1_update_nano()
324 memcpy(sctx->buffer + partial, src, len - done); in padlock_sha1_update_nano()
332 unsigned int partial, padlen; in padlock_sha1_final_nano() local
339 partial = state->count & 0x3f; in padlock_sha1_final_nano()
340 padlen = (partial < 56) ? (56 - partial) : ((64+56) - partial); in padlock_sha1_final_nano()
368 unsigned int partial, done; in padlock_sha256_update_nano() local
375 partial = sctx->count & 0x3f; in padlock_sha256_update_nano()
381 if ((partial + len) >= SHA256_BLOCK_SIZE) { in padlock_sha256_update_nano()
384 if (partial) { in padlock_sha256_update_nano()
385 done = -partial; in padlock_sha256_update_nano()
386 memcpy(sctx->buf + partial, data, in padlock_sha256_update_nano()
405 partial = 0; in padlock_sha256_update_nano()
408 memcpy(sctx->buf + partial, src, len - done); in padlock_sha256_update_nano()
417 unsigned int partial, padlen; in padlock_sha256_final_nano() local
424 partial = state->count & 0x3f; in padlock_sha256_final_nano()
425 padlen = (partial < 56) ? (56 - partial) : ((64+56) - partial); in padlock_sha256_final_nano()