From:             a dot lunkeit at signcubes dot com
Operating system: Linux
PHP version:      4.3.2
PHP Bug Type:     *Encryption and hash functions
Bug description:  Sha1 doesnt work correct with data greater then 2kB

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 bug report at http://bugs.php.net/?id=25177&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25177&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25177&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25177&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25177&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25177&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25177&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25177&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25177&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25177&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25177&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25177&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25177&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25177&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25177&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25177&r=gnused

Reply via email to