Lines Matching refs:buffer

52 	char buffer[256];	/* NB: always correctly aligned for uint64_t.  */  member
122 sha512_process_block(const void *buffer, size_t len, struct sha512_ctx *ctx) { in sha512_process_block() argument
123 const uint64_t *words = buffer; in sha512_process_block()
254 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha512_finish_ctx()
257 *(uint64_t *) &ctx->buffer[bytes + pad + 8] = SWAP(ctx->total[0] << 3); in sha512_finish_ctx()
258 *(uint64_t *) &ctx->buffer[bytes + pad] = SWAP((ctx->total[1] << 3) | in sha512_finish_ctx()
262 sha512_process_block(ctx->buffer, (size_t)(bytes + pad + 16), ctx); in sha512_finish_ctx()
273 sha512_process_bytes(const void *buffer, size_t len, struct sha512_ctx *ctx) { in sha512_process_bytes() argument
280 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
284 sha512_process_block(ctx->buffer, ctx->buflen & ~127, ctx); in sha512_process_bytes()
288 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
292 buffer = (const char *) buffer + add; in sha512_process_bytes()
306 if (UNALIGNED_P(buffer)) in sha512_process_bytes()
308 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes()
309 buffer = (const char *) buffer + 128; in sha512_process_bytes()
315 sha512_process_block(buffer, len & ~127, ctx); in sha512_process_bytes()
316 buffer = (const char *) buffer + (len & ~127); in sha512_process_bytes()
325 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
328 sha512_process_block(ctx->buffer, 128, ctx); in sha512_process_bytes()
330 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
359 php_sha512_crypt_r(const char *key, const char *salt, char *buffer, int buflen) { in php_sha512_crypt_r() argument
549 cp = __php_stpncpy(buffer, sha512_salt_prefix, MAX(0, buflen)); in php_sha512_crypt_r()
607 buffer = NULL; in php_sha512_crypt_r()
638 return buffer; in php_sha512_crypt_r()
650 ZEND_TLS char *buffer; in php_sha512_crypt() local
657 char *new_buffer = (char *) realloc(buffer, needed); in php_sha512_crypt()
662 buffer = new_buffer; in php_sha512_crypt()
666 return php_sha512_crypt_r (key, salt, buffer, buflen); in php_sha512_crypt()