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++;
462 /* multiply by 64 to make a byte count */
465 /* add the count */
467 if( (lsb += hd->count) < t )
469 /* multiply by 8 to make a bit count */
475 if( hd->count < 56 ) /* enough room */
477 hd->buf[hd->count++] = 0x80; /* pad */
478 while( hd->count < 56 )
479 hd->buf[hd->count++] = 0; /* pad */
483 hd->buf[hd->count++] = 0x80; /* pad character */
484 while( hd->count < 64 )
485 hd->buf[hd->count++] = 0;
489 /* append the 64 bit count */