Home
last modified time | relevance | path

Searched refs:left_over (Results 1 – 2 of 2) sorted by relevance

/PHP-7.3/ext/standard/
H A Dcrypt_sha256.c255 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()
[all …]
H A Dcrypt_sha512.c282 size_t left_over = (size_t)ctx->buflen; in sha512_process_bytes() local
283 size_t add = (size_t)(256 - left_over > len ? len : 256 - left_over); in sha512_process_bytes()
285 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
293 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
328 size_t left_over = (size_t)ctx->buflen; in sha512_process_bytes() local
330 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
331 left_over += len; in sha512_process_bytes()
332 if (left_over >= 128) { in sha512_process_bytes()
334 left_over -= 128; in sha512_process_bytes()
335 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
[all …]

Completed in 1753 milliseconds