Searched refs:usedspace (Results 1 – 2 of 2) sorted by relevance
/external/openssh/openbsd-compat/ |
D | sha2.c | 453 size_t freespace, usedspace; in SHA256_Update() local 459 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Update() 460 if (usedspace > 0) { in SHA256_Update() 462 freespace = SHA256_BLOCK_LENGTH - usedspace; in SHA256_Update() 466 memcpy(&context->buffer[usedspace], data, freespace); in SHA256_Update() 473 memcpy(&context->buffer[usedspace], data, len); in SHA256_Update() 476 usedspace = freespace = 0; in SHA256_Update() 493 usedspace = freespace = 0; in SHA256_Update() 499 unsigned int usedspace; in SHA256_Pad() local 501 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 …]
|