Lines Matching refs:freespace
519 unsigned int freespace, usedspace; in SHA256_Update() local
532 freespace = SHA256_BLOCK_LENGTH - usedspace; in SHA256_Update()
534 if (len >= freespace) { in SHA256_Update()
536 bcopy(data, &context->buffer[usedspace], freespace); in SHA256_Update()
537 context->bitcount += freespace << 3; in SHA256_Update()
538 len -= freespace; in SHA256_Update()
539 data += freespace; in SHA256_Update()
546 usedspace = freespace = 0; in SHA256_Update()
563 usedspace = freespace = 0; in SHA256_Update()
841 unsigned int freespace, usedspace; in SHA512_Update() local
854 freespace = SHA512_BLOCK_LENGTH - usedspace; in SHA512_Update()
856 if (len >= freespace) { in SHA512_Update()
858 bcopy(data, &context->buffer[usedspace], freespace); in SHA512_Update()
859 ADDINC128(context->bitcount, freespace << 3); in SHA512_Update()
860 len -= freespace; in SHA512_Update()
861 data += freespace; in SHA512_Update()
868 usedspace = freespace = 0; in SHA512_Update()
885 usedspace = freespace = 0; in SHA512_Update()