Home
last modified time | relevance | path

Searched refs:bitcount (Results 1 – 4 of 4) sorted by relevance

/dragonfly/sys/crypto/sha2/
HDsha2.c331 context->bitcount = 0; in SHA256_Init()
520 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Update()
528 context->bitcount += freespace << 3; in SHA256_Update()
535 context->bitcount += len << 3; in SHA256_Update()
544 context->bitcount += SHA256_BLOCK_LENGTH << 3; in SHA256_Update()
551 context->bitcount += len << 3; in SHA256_Update()
566 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Final()
569 REVERSE64(context->bitcount,context->bitcount); in SHA256_Final()
596 *(sha2_word64*)&context->buffer[SHA256_SHORT_BLOCK_LENGTH] = context->bitcount; in SHA256_Final()
659 context->bitcount[0] = context->bitcount[1] = 0; in SHA512_Init()
[all …]
HDsha2.h89 uint64_t bitcount;
94 uint64_t bitcount[2];
102 u_int64_t bitcount; member
107 u_int64_t bitcount[2]; member
/dragonfly/contrib/ldns/
HDsha2.c321 context->bitcount = 0; in ldns_sha256_init()
513 usedspace = (context->bitcount >> 3) % LDNS_SHA256_BLOCK_LENGTH; in ldns_sha256_update()
521 context->bitcount += freespace << 3; in ldns_sha256_update()
528 context->bitcount += len << 3; in ldns_sha256_update()
538 context->bitcount += LDNS_SHA256_BLOCK_LENGTH << 3; in ldns_sha256_update()
545 context->bitcount += len << 3; in ldns_sha256_update()
567 usedspace = (context->bitcount >> 3) % LDNS_SHA256_BLOCK_LENGTH; in ldns_sha256_final()
570 REVERSE64(context->bitcount,context->bitcount); in ldns_sha256_final()
598 cast_var.theLongs[ldns_sha256_SHORT_BLOCK_LENGTH / 8] = context->bitcount; in ldns_sha256_final()
640 context->bitcount[0] = context->bitcount[1] = 0; in ldns_sha512_init()
[all …]
/dragonfly/contrib/ldns/ldns/
HDsha2.h77 uint64_t bitcount; member
82 uint64_t bitcount[2]; member