Lines Matching refs:buffer
41 /* This array contains the bytes used to pad the buffer to the next
89 /* Process the remaining bytes in the internal buffer and the usual
109 memcpy (&ctx->buffer[bytes], fillbuf, pad);
111 /* Put the 64-bit file length in *bits* at the end of the buffer. */
115 le64_copy (&ctx->buffer[bytes + pad], bit_length);
118 md5_process_block (ctx->buffer, bytes + pad + 8, ctx);
136 char buffer[BLOCKSIZE + 72];
146 computation function processes the whole buffer so that with the
154 n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream);
166 /* Process buffer with BLOCKSIZE bytes. Note that
169 md5_process_block (buffer, BLOCKSIZE, &ctx);
174 md5_process_bytes (buffer, sum, &ctx);
184 /* Compute MD5 message digest for LEN bytes beginning at BUFFER. The
189 md5_buffer (buffer, len, resblock)
190 const char *buffer;
199 /* Process whole buffer but last len % 64 bytes. */
200 md5_process_bytes (buffer, len, &ctx);
209 md5_process_bytes (buffer, len, ctx)
210 const void *buffer;
214 /* When we already have some bits in our internal buffer concatenate
221 memcpy (&ctx->buffer[left_over], buffer, add);
226 md5_process_block (ctx->buffer, ctx->buflen & ~63, ctx);
230 memcpy (ctx->buffer, &ctx->buffer[(left_over + add) & ~63],
234 buffer = (const char *) buffer + add;
249 if (UNALIGNED_P (buffer))
252 md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
253 buffer = (const char *) buffer + 64;
259 md5_process_block (buffer, len & ~63, ctx);
260 buffer = (const char *) buffer + (len & ~63);
265 /* Move remaining bytes in internal buffer. */
270 memcpy (&ctx->buffer[left_over], buffer, len);
274 md5_process_block (ctx->buffer, 64, ctx);
276 memcpy (ctx->buffer, &ctx->buffer[64], left_over);
292 /* Process LEN bytes of BUFFER, accumulating context into CTX.
296 md5_process_block (buffer, len, ctx)
297 const void *buffer;
302 const md5_uint32 *words = buffer;
317 /* Process all bytes in the buffer with 64 bytes in each round of