Lines Matching refs:buffer

62 	char buffer[256];	/* NB: always correctly aligned for uint64_t.  */  member
132 sha512_process_block(const void *buffer, size_t len, struct sha512_ctx *ctx) { in sha512_process_block() argument
133 const uint64_t *words = buffer; in sha512_process_block()
264 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha512_finish_ctx()
267 *(uint64_t *) &ctx->buffer[bytes + pad + 8] = SWAP(ctx->total[0] << 3); in sha512_finish_ctx()
268 *(uint64_t *) &ctx->buffer[bytes + pad] = SWAP((ctx->total[1] << 3) | 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() argument
290 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
294 sha512_process_block(ctx->buffer, ctx->buflen & ~127, ctx); in sha512_process_bytes()
298 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
302 buffer = (const char *) buffer + add; in sha512_process_bytes()
316 if (UNALIGNED_P(buffer)) in sha512_process_bytes()
318 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes()
319 buffer = (const char *) buffer + 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()
335 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
338 sha512_process_block(ctx->buffer, 128, ctx); in sha512_process_bytes()
340 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
369 php_sha512_crypt_r(const char *key, const char *salt, char *buffer, int buflen) { in php_sha512_crypt_r() argument
553 cp = __php_stpncpy(buffer, sha512_salt_prefix, MAX(0, buflen)); in php_sha512_crypt_r()
611 buffer = NULL; in php_sha512_crypt_r()
634 return buffer; in php_sha512_crypt_r()
646 ZEND_TLS char *buffer; in php_sha512_crypt() local
653 char *new_buffer = (char *) realloc(buffer, needed); in php_sha512_crypt()
658 buffer = new_buffer; in php_sha512_crypt()
662 return php_sha512_crypt_r (key, salt, buffer, buflen); in php_sha512_crypt()