Lines Matching refs:len
40 extern void * __php_mempcpy(void * dst, const void * src, size_t len);
41 extern char * __php_stpncpy(char *dst, const char *src, size_t len);
132 sha512_process_block(const void *buffer, size_t len, struct sha512_ctx *ctx) { in sha512_process_block() argument
134 size_t nwords = len / sizeof(uint64_t); in sha512_process_block()
147 ctx->total[0] += len; in sha512_process_block()
148 if (ctx->total[0] < len) { in sha512_process_block()
283 sha512_process_bytes(const void *buffer, size_t len, struct sha512_ctx *ctx) { in sha512_process_bytes() argument
288 size_t add = (size_t)(256 - left_over > len ? len : 256 - left_over); in sha512_process_bytes()
303 len -= add; in sha512_process_bytes()
307 if (len >= 128) { in sha512_process_bytes()
317 while (len > 128) { in sha512_process_bytes()
320 len -= 128; in sha512_process_bytes()
325 sha512_process_block(buffer, len & ~127, ctx); in sha512_process_bytes()
326 buffer = (const char *) buffer + (len & ~127); in sha512_process_bytes()
327 len &= 127; in sha512_process_bytes()
332 if (len > 0) { in sha512_process_bytes()
335 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
336 left_over += len; in sha512_process_bytes()