Lines Matching refs:usedspace

635 	unsigned int	freespace, usedspace;
639 usedspace = (sha->bitcount >> 3) % SHA256_BLOCK_LENGTH;
640 if (usedspace > 0) {
642 freespace = SHA256_BLOCK_LENGTH - usedspace;
646 MEMCPY_BCOPY(&sha->buffer[usedspace], data, freespace);
653 MEMCPY_BCOPY(&sha->buffer[usedspace], data, len);
656 usedspace = freespace = 0;
673 usedspace = freespace = 0;
708 unsigned int usedspace;
714 usedspace = (sha->bitcount >> 3) % SHA256_BLOCK_LENGTH;
719 if (usedspace > 0) {
721 sha->buffer[usedspace++] = 0x80;
723 if (usedspace <= SHA256_SHORT_BLOCK_LENGTH) {
725 MEMSET_BZERO(&sha->buffer[usedspace], SHA256_SHORT_BLOCK_LENGTH - usedspace);
727 if (usedspace < SHA256_BLOCK_LENGTH) {
728 MEMSET_BZERO(&sha->buffer[usedspace], SHA256_BLOCK_LENGTH - usedspace);
769 usedspace = 0;
998 unsigned int freespace, usedspace;
1002 usedspace = (sha->bitcount[1] >> 3) % SHA512_BLOCK_LENGTH;
1003 if (usedspace > 0) {
1005 freespace = SHA512_BLOCK_LENGTH - usedspace;
1009 MEMCPY_BCOPY(&sha->buffer[usedspace], data, freespace);
1016 MEMCPY_BCOPY(&sha->buffer[usedspace], data, len);
1019 usedspace = freespace = 0;
1036 usedspace = freespace = 0;
1071 unsigned int usedspace;
1074 usedspace = (sha->bitcount[1] >> 3) % SHA512_BLOCK_LENGTH;
1080 if (usedspace > 0) {
1082 sha->buffer[usedspace++] = 0x80;
1084 if (usedspace <= SHA512_SHORT_BLOCK_LENGTH) {
1086 MEMSET_BZERO(&sha->buffer[usedspace], SHA512_SHORT_BLOCK_LENGTH - usedspace);
1088 if (usedspace < SHA512_BLOCK_LENGTH) {
1089 MEMSET_BZERO(&sha->buffer[usedspace], SHA512_BLOCK_LENGTH - usedspace);
1130 usedspace = 0;