Home
last modified time | relevance | path

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

/PHP-5.4/ext/standard/
H A Dcrypt_sha256.c266 size_t left_over = ctx->buflen; in sha256_process_bytes() local
267 size_t add = 128 - left_over > len ? len : 128 - left_over; in sha256_process_bytes()
269 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes()
276 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes()
306 size_t left_over = ctx->buflen; in sha256_process_bytes() local
308 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
309 left_over += len; in sha256_process_bytes()
310 if (left_over >= 64) { in sha256_process_bytes()
312 left_over -= 64; in sha256_process_bytes()
313 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes()
[all …]
H A Dcrypt_sha512.c293 size_t left_over = (size_t)ctx->buflen; in sha512_process_bytes() local
294 size_t add = (size_t)(256 - left_over > len ? len : 256 - left_over); in sha512_process_bytes()
296 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
304 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
339 size_t left_over = (size_t)ctx->buflen; in sha512_process_bytes() local
341 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
342 left_over += len; in sha512_process_bytes()
343 if (left_over >= 128) { in sha512_process_bytes()
345 left_over -= 128; in sha512_process_bytes()
346 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
[all …]

Completed in 14 milliseconds