Lines Matching refs:inputLen

334 			   unsigned int inputLen)  in PHP_SHA1Update()  argument
342 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) in PHP_SHA1Update()
343 < ((php_hash_uint32) inputLen << 3)) in PHP_SHA1Update()
345 context->count[1] += ((php_hash_uint32) inputLen >> 29); in PHP_SHA1Update()
351 if (inputLen >= partLen) { in PHP_SHA1Update()
356 for (i = partLen; i + 63 < inputLen; i += 64) in PHP_SHA1Update()
366 inputLen - i); in PHP_SHA1Update()
542 … void PHP_SHA224Update(PHP_SHA224_CTX * context, const unsigned char *input, unsigned int inputLen) in PHP_SHA224Update() argument
550 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { in PHP_SHA224Update()
553 context->count[1] += ((php_hash_uint32) inputLen >> 29); in PHP_SHA224Update()
559 if (inputLen >= partLen) { in PHP_SHA224Update()
563 for (i = partLen; i + 63 < inputLen; i += 64) { in PHP_SHA224Update()
573 memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); in PHP_SHA224Update()
619 … void PHP_SHA256Update(PHP_SHA256_CTX * context, const unsigned char *input, unsigned int inputLen) in PHP_SHA256Update() argument
627 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { in PHP_SHA256Update()
630 context->count[1] += ((php_hash_uint32) inputLen >> 29); in PHP_SHA256Update()
636 if (inputLen >= partLen) { in PHP_SHA256Update()
640 for (i = partLen; i + 63 < inputLen; i += 64) { in PHP_SHA256Update()
650 memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); in PHP_SHA256Update()
833 … void PHP_SHA384Update(PHP_SHA384_CTX * context, const unsigned char *input, unsigned int inputLen) in PHP_SHA384Update() argument
841 if ((context->count[0] += ((php_hash_uint64) inputLen << 3)) < ((php_hash_uint64) inputLen << 3)) { in PHP_SHA384Update()
844 context->count[1] += ((php_hash_uint64) inputLen >> 61); in PHP_SHA384Update()
850 if (inputLen >= partLen) { in PHP_SHA384Update()
854 for (i = partLen; i + 127 < inputLen; i += 128) { in PHP_SHA384Update()
864 memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); in PHP_SHA384Update()
947 … void PHP_SHA512Update(PHP_SHA512_CTX * context, const unsigned char *input, unsigned int inputLen) in PHP_SHA512Update() argument
955 if ((context->count[0] += ((php_hash_uint64) inputLen << 3)) < ((php_hash_uint64) inputLen << 3)) { in PHP_SHA512Update()
958 context->count[1] += ((php_hash_uint64) inputLen >> 61); in PHP_SHA512Update()
964 if (inputLen >= partLen) { in PHP_SHA512Update()
968 for (i = partLen; i + 127 < inputLen; i += 128) { in PHP_SHA512Update()
978 memcpy((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); in PHP_SHA512Update()