Lines Matching refs:left_over
255 size_t left_over = ctx->buflen; in sha256_process_bytes() local
256 size_t add = 128 - left_over > len ? len : 128 - left_over; in sha256_process_bytes()
258 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes()
265 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes()
295 size_t left_over = ctx->buflen; in sha256_process_bytes() local
297 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
298 left_over += len; in sha256_process_bytes()
299 if (left_over >= 64) { in sha256_process_bytes()
301 left_over -= 64; in sha256_process_bytes()
302 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes()
304 ctx->buflen = (uint32_t)left_over; in sha256_process_bytes()