Lines Matching refs:count
63 int count;
79 hd->count = 0;
244 if (hd->count == 64) /* Flush the buffer. */
248 hd->count = 0;
254 if (hd->count)
256 for (; inlen && hd->count < 64; inlen--)
257 hd->buf[hd->count++] = *inbuf++;
267 hd->count = 0;
275 for (; inlen && hd->count < 64; inlen--)
276 hd->buf[hd->count++] = *inbuf++;
298 /* multiply by 64 to make a byte count */
301 /* add the count */
303 if( (lsb += hd->count) < t )
305 /* multiply by 8 to make a bit count */
311 if( hd->count < 56 ) /* enough room */
313 hd->buf[hd->count++] = 0x80; /* pad */
314 while( hd->count < 56 )
315 hd->buf[hd->count++] = 0; /* pad */
319 hd->buf[hd->count++] = 0x80; /* pad character */
320 while( hd->count < 64 )
321 hd->buf[hd->count++] = 0;
325 /* append the 64 bit count */