Lines Matching refs:len
41 char * __php_stpncpy(char *dst, const char *src, size_t len) in __php_stpncpy() argument
44 if (n > len) { in __php_stpncpy()
45 n = len; in __php_stpncpy()
47 return strncpy(dst, src, len) + n; in __php_stpncpy()
50 void * __php_mempcpy(void * dst, const void * src, size_t len) in __php_mempcpy() argument
52 return (((char *)memcpy(dst, src, len)) + len); in __php_mempcpy()
106 static void sha256_process_block (const void *buffer, size_t len, struct sha256_ctx *ctx) { in sha256_process_block() argument
108 size_t nwords = len / sizeof (uint32_t); in sha256_process_block()
123 ctx->total[0] += (uint32_t)len; in sha256_process_block()
124 if (ctx->total[0] < len) { in sha256_process_block()
256 static void sha256_process_bytes(const void *buffer, size_t len, struct sha256_ctx *ctx) { in sha256_process_bytes() argument
261 size_t add = 128 - left_over > len ? len : 128 - left_over; in sha256_process_bytes()
274 len -= add; in sha256_process_bytes()
278 if (len >= 64) { in sha256_process_bytes()
287 while (len > 64) { in sha256_process_bytes()
290 len -= 64; in sha256_process_bytes()
292 sha256_process_block(buffer, len & ~63, ctx); in sha256_process_bytes()
293 buffer = (const char *) buffer + (len & ~63); in sha256_process_bytes()
294 len &= 63; in sha256_process_bytes()
299 if (len > 0) { in sha256_process_bytes()
302 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
303 left_over += len; in sha256_process_bytes()