Lines Matching refs:CHUNK_SIZE
50 #define CHUNK_SIZE 256
53 * a chunk smaller then CHUNK_SIZE bytes correct if and only if it is
61 unsigned char buf [CHUNK_SIZE]; /* SHA block */
175 if (s->count == CHUNK_SIZE) {
209 if ((s->count + bufLen) < CHUNK_SIZE) {
224 int k = CHUNK_SIZE - s->count;
226 if (k < CHUNK_SIZE) {
229 sha_update (&s->s, s->buf, CHUNK_SIZE);
233 } /* k == CHUNK_SIZE => internal buffer was empty, so skip it entirely */
235 while (bufLen > CHUNK_SIZE) {
236 sha_update (&s->s, buffer, CHUNK_SIZE);
238 buffer += CHUNK_SIZE;
239 bufLen -= CHUNK_SIZE;