Searched refs:usedspace (Results 1 – 2 of 2) sorted by relevance
/external/openssh/openbsd-compat/ |
D | sha2.c | 458 size_t freespace, usedspace; in SHA256_Update() local 464 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Update() 465 if (usedspace > 0) { in SHA256_Update() 467 freespace = SHA256_BLOCK_LENGTH - usedspace; in SHA256_Update() 471 memcpy(&context->buffer[usedspace], data, freespace); in SHA256_Update() 478 memcpy(&context->buffer[usedspace], data, len); in SHA256_Update() 481 usedspace = freespace = 0; in SHA256_Update() 498 usedspace = freespace = 0; in SHA256_Update() 504 unsigned int usedspace; in SHA256_Pad() local 506 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Pad() [all …]
|
/external/ipsec-tools/src/racoon/missing/crypto/sha2/ |
D | sha2.c | 519 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 …]
|