#25177 [Opn->Fbk]: Sha1 doesnt work correct with data greater then 2kB

From: Date: Wed, 20 Aug 2003 13:29:56 +0000
Subject: #25177 [Opn->Fbk]: Sha1 doesnt work correct with data greater then 2kB
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46312@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#46312) next »