Lines Matching refs:buffer

57 /* This array contains the bytes used to pad the buffer to the next
92 /* Process the remaining bytes in the internal buffer and the usual
110 memcpy (&ctx->buffer[bytes], fillbuf, pad);
112 /* Put the 64-bit file length in *bits* at the end of the buffer. */
113 *(md5_uint32 *) &ctx->buffer[bytes + pad] = SWAP (ctx->total[0] << 3);
114 *(md5_uint32 *) &ctx->buffer[bytes + pad + 4] = SWAP ((ctx->total[1] << 3) |
118 md5_process_block (ctx->buffer, bytes + pad + 8, ctx);
132 char buffer[BLOCKSIZE + 72];
142 computation function processes the whole buffer so that with the
150 n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream);
162 /* Process buffer with BLOCKSIZE bytes. Note that
165 md5_process_block (buffer, BLOCKSIZE, &ctx);
170 md5_process_bytes (buffer, sum, &ctx);
182 md5_buffer (const char *buffer, size_t len, void *resblock)
189 /* Process whole buffer but last len % 64 bytes. */
190 md5_process_bytes (buffer, len, &ctx);
198 md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx)
200 /* When we already have some bits in our internal buffer concatenate
207 memcpy (&ctx->buffer[left_over], buffer, add);
212 md5_process_block (ctx->buffer, (left_over + add) & ~63, ctx);
214 memcpy (ctx->buffer, &ctx->buffer[(left_over + add) & ~63],
219 buffer = (const void *) ((const char *) buffer + add);
234 if (UNALIGNED_P (buffer))
237 md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
238 buffer = (const char *) buffer + 64;
243 md5_process_block (buffer, len & ~63, ctx);
244 buffer = (const void *) ((const char *) buffer + (len & ~63));
248 /* Move remaining bytes in internal buffer. */
251 memcpy (ctx->buffer, buffer, len);
270 md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx)
273 const md5_uint32 *words = (const md5_uint32 *) buffer;
288 /* Process all bytes in the buffer with 64 bytes in each round of