Searched refs:usedspace (Results 1 – 3 of 3) sorted by relevance
/freebsd/contrib/unbound/compat/ |
H A D | sha512.c | 349 size_t freespace, usedspace; in SHA512_Update() local 360 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Update() 361 if (usedspace > 0) { in SHA512_Update() 363 freespace = SHA512_BLOCK_LENGTH - usedspace; in SHA512_Update() 367 MEMCPY_BCOPY(&context->buffer[usedspace], data, freespace); in SHA512_Update() 374 MEMCPY_BCOPY(&context->buffer[usedspace], data, len); in SHA512_Update() 377 usedspace = freespace = 0; in SHA512_Update() 394 usedspace = freespace = 0; in SHA512_Update() 398 size_t usedspace; in SHA512_Last() local 401 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Last() [all …]
|
/freebsd/contrib/ldns/ |
H A D | sha2.c | 503 size_t freespace, usedspace; in ldns_sha256_update() local 513 usedspace = (context->bitcount >> 3) % LDNS_SHA256_BLOCK_LENGTH; in ldns_sha256_update() 514 if (usedspace > 0) { in ldns_sha256_update() 516 freespace = LDNS_SHA256_BLOCK_LENGTH - usedspace; in ldns_sha256_update() 520 MEMCPY_BCOPY(&context->buffer[usedspace], data, freespace); in ldns_sha256_update() 527 MEMCPY_BCOPY(&context->buffer[usedspace], data, len); in ldns_sha256_update() 530 usedspace = freespace = 0; in ldns_sha256_update() 531 (void)usedspace; in ldns_sha256_update() 548 usedspace = freespace = 0; in ldns_sha256_update() 549 (void)usedspace; in ldns_sha256_update() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | sha2.c | 525 u_int64_t freespace, usedspace; in SHA256Update() local 531 usedspace = (context->bitcount[0] >> 3) % SHA256_BLOCK_LENGTH; in SHA256Update() 532 if (usedspace > 0) { in SHA256Update() 534 freespace = SHA256_BLOCK_LENGTH - usedspace; in SHA256Update() 538 memcpy(&context->buffer[usedspace], data, freespace); in SHA256Update() 545 memcpy(&context->buffer[usedspace], data, len); in SHA256Update() 548 usedspace = freespace = 0; in SHA256Update() 565 usedspace = freespace = 0; in SHA256Update() 572 unsigned int usedspace; in SHA256Pad() local 574 usedspace = (context->bitcount[0] >> 3) % SHA256_BLOCK_LENGTH; in SHA256Pad() [all …]
|