Lines Matching refs:bitcount
340 context->bitcount = 0; in SHA256_Init()
529 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Update()
537 context->bitcount += freespace << 3; in SHA256_Update()
544 context->bitcount += len << 3; in SHA256_Update()
553 context->bitcount += SHA256_BLOCK_LENGTH << 3; in SHA256_Update()
560 context->bitcount += len << 3; in SHA256_Update()
575 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Final()
578 REVERSE64(context->bitcount,context->bitcount); in SHA256_Final()
605 *(sha2_word64*)&context->buffer[SHA256_SHORT_BLOCK_LENGTH] = context->bitcount; in SHA256_Final()
668 context->bitcount[0] = context->bitcount[1] = 0; in SHA512_Init()
851 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Update()
859 ADDINC128(context->bitcount, freespace << 3); in SHA512_Update()
866 ADDINC128(context->bitcount, len << 3); in SHA512_Update()
875 ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3); in SHA512_Update()
882 ADDINC128(context->bitcount, len << 3); in SHA512_Update()
891 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Last()
894 REVERSE64(context->bitcount[0],context->bitcount[0]); in SHA512_Last()
895 REVERSE64(context->bitcount[1],context->bitcount[1]); in SHA512_Last()
922 *(sha2_word64*)&context->buffer[SHA512_SHORT_BLOCK_LENGTH] = context->bitcount[1]; in SHA512_Last()
923 *(sha2_word64*)&context->buffer[SHA512_SHORT_BLOCK_LENGTH+8] = context->bitcount[0]; in SHA512_Last()
997 context->bitcount[0] = context->bitcount[1] = 0; in SHA384_Init()