Lines Matching refs:len
47 char * __php_stpncpy(char *dst, const char *src, size_t len) in __php_stpncpy() argument
50 if (n > len) { in __php_stpncpy()
51 n = len; in __php_stpncpy()
53 return strncpy(dst, src, len) + n; in __php_stpncpy()
56 void * __php_mempcpy(void * dst, const void * src, size_t len) in __php_mempcpy() argument
58 return (((char *)memcpy(dst, src, len)) + len); in __php_mempcpy()
112 static void sha256_process_block (const void *buffer, size_t len, struct sha256_ctx *ctx) { in sha256_process_block() argument
114 size_t nwords = len / sizeof (uint32_t); in sha256_process_block()
129 ctx->total[0] += len; in sha256_process_block()
130 if (ctx->total[0] < len) { in sha256_process_block()
262 static void sha256_process_bytes(const void *buffer, size_t len, struct sha256_ctx *ctx) { in sha256_process_bytes() argument
267 size_t add = 128 - left_over > len ? len : 128 - left_over; in sha256_process_bytes()
280 len -= add; in sha256_process_bytes()
284 if (len >= 64) { in sha256_process_bytes()
293 while (len > 64) { in sha256_process_bytes()
296 len -= 64; in sha256_process_bytes()
298 sha256_process_block(buffer, len & ~63, ctx); in sha256_process_bytes()
299 buffer = (const char *) buffer + (len & ~63); in sha256_process_bytes()
300 len &= 63; in sha256_process_bytes()
305 if (len > 0) { in sha256_process_bytes()
308 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
309 left_over += len; in sha256_process_bytes()