Lines Matching refs:count
62 int count;
78 hd->count = 0;
243 if (hd->count == 64) /* Flush the buffer. */
247 hd->count = 0;
253 if (hd->count)
255 for (; inlen && hd->count < 64; inlen--)
256 hd->buf[hd->count++] = *inbuf++;
266 hd->count = 0;
274 for (; inlen && hd->count < 64; inlen--)
275 hd->buf[hd->count++] = *inbuf++;
297 /* multiply by 64 to make a byte count */
300 /* add the count */
302 if( (lsb += hd->count) < t )
304 /* multiply by 8 to make a bit count */
310 if( hd->count < 56 ) /* enough room */
312 hd->buf[hd->count++] = 0x80; /* pad */
313 while( hd->count < 56 )
314 hd->buf[hd->count++] = 0; /* pad */
318 hd->buf[hd->count++] = 0x80; /* pad character */
319 while( hd->count < 64 )
320 hd->buf[hd->count++] = 0;
324 /* append the 64 bit count */