Lines Matching refs:inputLen
145 void _SHA1Update(SHA1_CTX *context, const void *inpp, size_t inputLen);
179 _SHA1Update(SHA1_CTX *context, const void *inpp, size_t inputLen)
184 if (inputLen == 0)
191 if ((context->bcount[1] += (inputLen << 3)) < (inputLen << 3))
193 context->bcount[0] += (inputLen >> 29);
199 if (inputLen >= partLen) {
208 for (; i + 63 < inputLen; i += 64)
213 if (inputLen == i)
220 memcpy(&context->buffer[index], &input[i], inputLen - i);
272 * The inputLen passed in should always be less than or equal to a page size (4096)
276 void SHA1UpdateUsePhysicalAddress(SHA1_CTX *context, const void *inpp, size_t inputLen)
279 if((inputLen == PAGE_SIZE) && performSHA1WithinKernelOnly) { // If hardware exists and is ready.
280 if(SHA1UpdateWithHardware(context, (const unsigned char *)inpp, inputLen, usePhysicalAddress))
286 // has not been initialized yet or inputLen != PAGE_SIZE.
287 _SHA1Update(context, inpp, inputLen);
294 void SHA1Update(SHA1_CTX *context, const void *inpp, size_t inputLen)
300 if((inputLen > SHA1_USE_HARDWARE_THRESHOLD) && performSHA1WithinKernelOnly) {
305 _SHA1Update(context, inpp, inputLen);
306 inputLen -= partLen;
310 u_int32_t lenForHardware = inputLen & (~0x3F); //multiple of 64
314 inputLen -= bytesHashed;
319 _SHA1Update(context, input, inputLen);