Lines Matching defs:usedspace
653 unsigned int freespace, usedspace;
657 usedspace = (sha->bitcount >> 3) % SHA256_BLOCK_LENGTH;
658 if (usedspace > 0) {
660 freespace = SHA256_BLOCK_LENGTH - usedspace;
664 MEMCPY_BCOPY(&sha->buffer[usedspace], data, freespace);
671 MEMCPY_BCOPY(&sha->buffer[usedspace], data, len);
674 usedspace = freespace = 0;
691 usedspace = freespace = 0;
726 unsigned int usedspace;
732 usedspace = (sha->bitcount >> 3) % SHA256_BLOCK_LENGTH;
737 if (usedspace > 0) {
739 sha->buffer[usedspace++] = 0x80;
741 if (usedspace <= SHA256_SHORT_BLOCK_LENGTH) {
743 MEMSET_BZERO(&sha->buffer[usedspace], SHA256_SHORT_BLOCK_LENGTH - usedspace);
745 if (usedspace < SHA256_BLOCK_LENGTH) {
746 MEMSET_BZERO(&sha->buffer[usedspace], SHA256_BLOCK_LENGTH - usedspace);
787 usedspace = 0;
1016 unsigned int freespace, usedspace;
1020 usedspace = (sha->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH;
1021 if (usedspace > 0) {
1023 freespace = SHA512_BLOCK_LENGTH - usedspace;
1027 MEMCPY_BCOPY(&sha->buffer[usedspace], data, freespace);
1034 MEMCPY_BCOPY(&sha->buffer[usedspace], data, len);
1037 usedspace = freespace = 0;
1054 usedspace = freespace = 0;
1089 unsigned int usedspace;
1092 usedspace = (sha->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH;
1098 if (usedspace > 0) {
1100 sha->buffer[usedspace++] = 0x80;
1102 if (usedspace <= SHA512_SHORT_BLOCK_LENGTH) {
1104 MEMSET_BZERO(&sha->buffer[usedspace], SHA512_SHORT_BLOCK_LENGTH - usedspace);
1106 if (usedspace < SHA512_BLOCK_LENGTH) {
1107 MEMSET_BZERO(&sha->buffer[usedspace], SHA512_BLOCK_LENGTH - usedspace);
1149 usedspace = 0;