ID: 25177 User updated by: a dot lunkeit at signcubes dot com Reported By: a dot lunkeit at signcubes dot com -Status: Feedback +Status: Open Bug Type: *Encryption and hash functions Operating System: Linux PHP Version: 4.3.2 New Comment:
Now i found out, that the data can be smaller. I took some data greater than 512 Bytes and the bug also appears. With data smaller than 512 Bytes it will not appear. I will generate some vectors for you within next half hour. Previous Comments: ------------------------------------------------------------------------ [2003-08-20 08:29:56] [EMAIL PROTECTED] Can you point me to some of the reference test vectors? ------------------------------------------------------------------------ [2003-08-20 08:22:11] a dot lunkeit at signcubes dot com Description: ------------ I noticed, that the sha1 function computes wrong hash values for data with a volume greater than 2kB. My reference values are various free implementations in C++, which come to the same hash value, but the PHP implementation differs. With data smaller than 2kB the problem does not exist. Reproduce code: --------------- This can be any code using the sha1 function. My code example doesn't really matter. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25177&edit=1
