Lines Matching refs:buffer

53 	char buffer[256];	/* NB: always correctly aligned for uint64_t.  */  member
123 sha512_process_block(const void *buffer, size_t len, struct sha512_ctx *ctx) { in sha512_process_block() argument
124 const uint64_t *words = buffer; in sha512_process_block()
255 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha512_finish_ctx()
258 *(uint64_t *) &ctx->buffer[bytes + pad + 8] = SWAP(ctx->total[0] << 3); in sha512_finish_ctx()
259 *(uint64_t *) &ctx->buffer[bytes + pad] = SWAP((ctx->total[1] << 3) | in sha512_finish_ctx()
263 sha512_process_block(ctx->buffer, (size_t)(bytes + pad + 16), ctx); in sha512_finish_ctx()
274 sha512_process_bytes(const void *buffer, size_t len, struct sha512_ctx *ctx) { in sha512_process_bytes() argument
281 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
285 sha512_process_block(ctx->buffer, ctx->buflen & ~127, ctx); in sha512_process_bytes()
289 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
293 buffer = (const char *) buffer + add; in sha512_process_bytes()
307 if (UNALIGNED_P(buffer)) in sha512_process_bytes()
309 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes()
310 buffer = (const char *) buffer + 128; in sha512_process_bytes()
316 sha512_process_block(buffer, len & ~127, ctx); in sha512_process_bytes()
317 buffer = (const char *) buffer + (len & ~127); in sha512_process_bytes()
326 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
329 sha512_process_block(ctx->buffer, 128, ctx); in sha512_process_bytes()
331 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
360 php_sha512_crypt_r(const char *key, const char *salt, char *buffer, int buflen) { in php_sha512_crypt_r() argument
541 cp = __php_stpncpy(buffer, sha512_salt_prefix, MAX(0, buflen)); in php_sha512_crypt_r()
599 buffer = NULL; in php_sha512_crypt_r()
622 return buffer; in php_sha512_crypt_r()
634 ZEND_TLS char *buffer; in php_sha512_crypt() local
641 char *new_buffer = (char *) realloc(buffer, needed); in php_sha512_crypt()
646 buffer = new_buffer; in php_sha512_crypt()
650 return php_sha512_crypt_r (key, salt, buffer, buflen); in php_sha512_crypt()