Lines Matching refs:count
155 hd->count = 0;
410 if( hd->count == 64 ) /* flush the buffer */
414 hd->count = 0;
419 if( hd->count )
421 for( ; inlen && hd->count < 64; inlen-- )
422 hd->buf[hd->count++] = *inbuf++;
431 hd->count = 0;
437 for( ; inlen && hd->count < 64; inlen-- )
438 hd->buf[hd->count++] = *inbuf++;
476 /* multiply by 64 to make a byte count */
479 /* add the count */
481 if( (lsb += hd->count) < t )
483 /* multiply by 8 to make a bit count */
489 if( hd->count < 56 ) /* enough room */
491 hd->buf[hd->count++] = 0x80; /* pad */
492 while( hd->count < 56 )
493 hd->buf[hd->count++] = 0; /* pad */
497 hd->buf[hd->count++] = 0x80; /* pad character */
498 while( hd->count < 64 )
499 hd->buf[hd->count++] = 0;
503 /* append the 64 bit count */