Lines Matching refs:size_t
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()
134 size_t nwords = len / sizeof(uint64_t); in sha512_process_block()
254 size_t pad; in sha512_finish_ctx()
263 pad = bytes >= 112 ? 128 + 112 - (size_t)bytes : 112 - (size_t)bytes; in sha512_finish_ctx()
272 sha512_process_block(ctx->buffer, (size_t)(bytes + pad + 16), ctx); in sha512_finish_ctx()
283 sha512_process_bytes(const void *buffer, size_t len, struct sha512_ctx *ctx) { in sha512_process_bytes()
287 size_t left_over = (size_t)ctx->buflen; in sha512_process_bytes()
288 size_t add = (size_t)(256 - left_over > len ? len : 256 - left_over); in sha512_process_bytes()
299 (size_t)ctx->buflen); in sha512_process_bytes()
333 size_t left_over = (size_t)ctx->buflen; in sha512_process_bytes()
386 size_t salt_len; in php_sha512_crypt_r()
387 size_t key_len; in php_sha512_crypt_r()
388 size_t cnt; in php_sha512_crypt_r()
395 size_t rounds = ROUNDS_DEFAULT; in php_sha512_crypt_r()
503 for (cnt = 0; cnt < (size_t) (16 + alt_result[0]); ++cnt) { in php_sha512_crypt_r()
566 cp = __php_stpncpy(cp, salt, MIN((size_t) MAX(0, buflen), salt_len)); in php_sha512_crypt_r()
567 buflen -= (int) MIN((size_t) MAX(0, buflen), salt_len); in php_sha512_crypt_r()