Home
last modified time | relevance | path

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

/PHP-7.4/ext/standard/
H A Dcrypt_sha256.c251 size_t left_over = ctx->buflen; in sha256_process_bytes() local
252 size_t add = 128 - left_over > len ? len : 128 - left_over; in sha256_process_bytes()
254 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes()
261 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes()
291 size_t left_over = ctx->buflen; in sha256_process_bytes() local
293 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
294 left_over += len; in sha256_process_bytes()
295 if (left_over >= 64) { in sha256_process_bytes()
297 left_over -= 64; in sha256_process_bytes()
298 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes()
[all …]
H A Dcrypt_sha512.c278 size_t left_over = (size_t)ctx->buflen; in sha512_process_bytes() local
279 size_t add = (size_t)(256 - left_over > len ? len : 256 - left_over); in sha512_process_bytes()
281 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
289 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
324 size_t left_over = (size_t)ctx->buflen; in sha512_process_bytes() local
326 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
327 left_over += len; in sha512_process_bytes()
328 if (left_over >= 128) { in sha512_process_bytes()
330 left_over -= 128; in sha512_process_bytes()
331 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
[all …]

Completed in 9 milliseconds