Home
last modified time | relevance | path

Searched refs:usedspace (Results 1 – 2 of 2) sorted by relevance

/external/openssh/openbsd-compat/
Dsha2.c525 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 …]
/external/ipsec-tools/src/racoon/missing/crypto/sha2/
Dsha2.c519 unsigned int freespace, usedspace; in SHA256_Update() local
529 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Update()
530 if (usedspace > 0) { in SHA256_Update()
532 freespace = SHA256_BLOCK_LENGTH - usedspace; in SHA256_Update()
536 bcopy(data, &context->buffer[usedspace], freespace); in SHA256_Update()
543 bcopy(data, &context->buffer[usedspace], len); in SHA256_Update()
546 usedspace = freespace = 0; in SHA256_Update()
563 usedspace = freespace = 0; in SHA256_Update()
568 unsigned int usedspace; in SHA256_Final() local
575 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Final()
[all …]