#25177 [Opn->Fbk]: Sha1 doesnt work correct with data greater then 2kB
ID: 25177
Updated by: derick@php.net
Reported By: a dot lunkeit at signcubes dot com
-Status: Open
+Status: Feedback
Bug Type: *Encryption and hash functions
Operating System: Linux
PHP Version: 4.3.2
New Comment:
Can you point me to some of the reference test vectors?
Previous Comments:
------------------------------------------------------------------------
[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
Thread (6 messages)