Lines Matching refs:usedspace
671 unsigned int freespace, usedspace;
681 usedspace = (unsigned int)((context->bitcount >> 3) %
683 if (usedspace > 0) {
685 freespace = ISC_SHA256_BLOCK_LENGTH - usedspace;
689 memmove(&context->buffer[usedspace], data, freespace);
697 memmove(&context->buffer[usedspace], data, len);
700 usedspace = freespace = 0;
702 POST(usedspace); POST(freespace);
720 usedspace = freespace = 0;
722 POST(usedspace); POST(freespace);
728 unsigned int usedspace;
735 usedspace = (unsigned int)((context->bitcount >> 3) %
741 if (usedspace > 0) {
743 context->buffer[usedspace++] = 0x80;
745 if (usedspace <= ISC_SHA256_SHORT_BLOCK_LENGTH) {
747 memset(&context->buffer[usedspace], 0,
748 ISC_SHA256_SHORT_BLOCK_LENGTH - usedspace);
750 if (usedspace < ISC_SHA256_BLOCK_LENGTH) {
751 memset(&context->buffer[usedspace], 0,
753 usedspace);
792 usedspace = 0;
793 POST(usedspace);
1027 unsigned int freespace, usedspace;
1037 usedspace = (unsigned int)((context->bitcount[0] >> 3) %
1039 if (usedspace > 0) {
1041 freespace = ISC_SHA512_BLOCK_LENGTH - usedspace;
1045 memmove(&context->buffer[usedspace], data, freespace);
1053 memmove(&context->buffer[usedspace], data, len);
1056 usedspace = freespace = 0;
1058 POST(usedspace); POST(freespace);
1076 usedspace = freespace = 0;
1078 POST(usedspace); POST(freespace);
1082 unsigned int usedspace;
1084 usedspace = (unsigned int)((context->bitcount[0] >> 3) %
1091 if (usedspace > 0) {
1093 context->buffer[usedspace++] = 0x80;
1095 if (usedspace <= ISC_SHA512_SHORT_BLOCK_LENGTH) {
1097 memset(&context->buffer[usedspace], 0,
1098 ISC_SHA512_SHORT_BLOCK_LENGTH - usedspace);
1100 if (usedspace < ISC_SHA512_BLOCK_LENGTH) {
1101 memset(&context->buffer[usedspace], 0,
1102 ISC_SHA512_BLOCK_LENGTH - usedspace);