Lines Matching refs:buffer

76 sha256_process_block (const void *buffer, size_t len, struct sha256_ctx *ctx)  in sha256_process_block()  argument
78 const uint32_t *words = buffer; in sha256_process_block()
210 memcpy (&ctx->buffer[bytes], fillbuf, pad); in __sha256_finish_ctx()
213 *(uint32_t *) &ctx->buffer[bytes + pad + 4] = SWAP (ctx->total[0] << 3); in __sha256_finish_ctx()
214 *(uint32_t *) &ctx->buffer[bytes + pad] = SWAP ((ctx->total[1] << 3) | in __sha256_finish_ctx()
218 sha256_process_block (ctx->buffer, bytes + pad + 8, ctx); in __sha256_finish_ctx()
229 __sha256_process_bytes (const void *buffer, size_t len, struct sha256_ctx *ctx) in __sha256_process_bytes() argument
238 memcpy (&ctx->buffer[left_over], buffer, add); in __sha256_process_bytes()
243 sha256_process_block (ctx->buffer, ctx->buflen & ~63, ctx); in __sha256_process_bytes()
247 memcpy (ctx->buffer, &ctx->buffer[(left_over + add) & ~63], in __sha256_process_bytes()
251 buffer = (const char *) buffer + add; in __sha256_process_bytes()
263 if (UNALIGNED_P (buffer)) in __sha256_process_bytes()
266 sha256_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx); in __sha256_process_bytes()
267 buffer = (const char *) buffer + 64; in __sha256_process_bytes()
272 sha256_process_block (buffer, len & ~63, ctx); in __sha256_process_bytes()
273 buffer = (const char *) buffer + (len & ~63); in __sha256_process_bytes()
283 memcpy (&ctx->buffer[left_over], buffer, len); in __sha256_process_bytes()
287 sha256_process_block (ctx->buffer, 64, ctx); in __sha256_process_bytes()
289 memcpy (ctx->buffer, &ctx->buffer[64], left_over); in __sha256_process_bytes()