Lines Matching defs:buffer
57 /* This array contains the bytes used to pad the buffer to the next
71 md5_buffer (const char *buffer, size_t len, void *resblock);
73 md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx);
75 md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx);
108 /* Process the remaining bytes in the internal buffer and the usual
127 memcpy (&ctx->buffer[bytes], fillbuf, pad);
129 /* Put the 64-bit file length in *bits* at the end of the buffer. */
131 ((md5_uint32 *) ctx->buffer)[offset] = SWAP (ctx->total[0] << 3);
133 ((md5_uint32 *) ctx->buffer)[offset] = SWAP ((ctx->total[1] << 3) |
137 md5_process_block (ctx->buffer, bytes + pad + 8, ctx);
151 char buffer[BLOCKSIZE + 72];
161 computation function processes the whole buffer so that with the
169 n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream);
181 /* Process buffer with BLOCKSIZE bytes. Note that
184 md5_process_block (buffer, BLOCKSIZE, &ctx);
189 md5_process_bytes (buffer, sum, &ctx);
201 md5_buffer (const char *buffer, size_t len, void *resblock)
208 /* Process whole buffer but last len % 64 bytes. */
209 md5_process_bytes (buffer, len, &ctx);
217 md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx)
219 /* When we already have some bits in our internal buffer concatenate
226 memcpy (&ctx->buffer[left_over], buffer, add);
231 md5_process_block (ctx->buffer, ctx->buflen & ~63, ctx);
235 memcpy (ctx->buffer, &ctx->buffer[(left_over + add) & ~63],
239 buffer = (const char *) buffer + add;
254 if (UNALIGNED_P (buffer))
257 md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
258 buffer = (const char *) buffer + 64;
264 md5_process_block (buffer, len & ~63, ctx);
265 buffer = (const char *) buffer + (len & ~63);
270 /* Move remaining bytes in internal buffer. */
275 memcpy (&ctx->buffer[left_over], buffer, len);
279 md5_process_block (ctx->buffer, 64, ctx);
281 memcpy (ctx->buffer, &ctx->buffer[64], left_over);
301 md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx)
304 const md5_uint32 *words = buffer;
319 /* Process all bytes in the buffer with 64 bytes in each round of