Lines Matching refs:buffer
103 void __sha512_process_block (const void *buffer, size_t len,
147 memcpy (&ctx->buffer[bytes], fillbuf, pad); in __sha512_finish_ctx()
155 __sha512_process_block (ctx->buffer, bytes + pad + 16, ctx); in __sha512_finish_ctx()
166 __sha512_process_bytes (const void *buffer, size_t len, struct sha512_ctx *ctx) in __sha512_process_bytes() argument
175 memcpy (&ctx->buffer[left_over], buffer, add); in __sha512_process_bytes()
180 __sha512_process_block (ctx->buffer, ctx->buflen & ~127, ctx); in __sha512_process_bytes()
184 memcpy (ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in __sha512_process_bytes()
188 buffer = (const char *) buffer + add; in __sha512_process_bytes()
203 if (UNALIGNED_P (buffer)) in __sha512_process_bytes()
206 __sha512_process_block (memcpy (ctx->buffer, buffer, 128), 128, in __sha512_process_bytes()
208 buffer = (const char *) buffer + 128; in __sha512_process_bytes()
214 __sha512_process_block (buffer, len & ~127, ctx); in __sha512_process_bytes()
215 buffer = (const char *) buffer + (len & ~127); in __sha512_process_bytes()
225 memcpy (&ctx->buffer[left_over], buffer, len); in __sha512_process_bytes()
229 __sha512_process_block (ctx->buffer, 128, ctx); in __sha512_process_bytes()
231 memcpy (ctx->buffer, &ctx->buffer[128], left_over); in __sha512_process_bytes()