Req #71177 [ReO->Csd]: add sha512/224 and sha512/256

From: Date: Sat, 14 May 2016 04:40:58 +0000
Subject: Req #71177 [ReO->Csd]: add sha512/224 and sha512/256
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201084@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71177&edit=1 ID: 71177 Updated by: pollita@php.net Reported by: zelnaga at gmail dot com Summary: add sha512/224 and sha512/256 -Status: Re-Opened +Status: Closed Type: Feature/Change Request Package: hash related Operating System: Ubuntu PHP Version: 7.0.1 Assigned To: pollita Block user comment: N Private report: N New Comment: The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. https://github.com/php/php-src/commit/49a7be069700efbb98dbb076bb0891c748c343f4 Previous Comments: ------------------------------------------------------------------------ [2015-12-21 08:33:25] leigh@php.net @Pierre SHA-512/224 and SHA-512/256 are not the same as SHA-224 and SHA-256, so this is still a valid FR. ------------------------------------------------------------------------ [2015-12-21 04:52:56] pajoye@php.net They are, see http://php.net/manual/en/function.hash-algos.php [4] => sha224 [5] => sha256 [6] => sha384 [7] => sha512 ------------------------------------------------------------------------ [2015-12-21 01:00:25] zelnaga at gmail dot com Also, see http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf#page=35 ------------------------------------------------------------------------ [2015-12-21 00:45:54] zelnaga at gmail dot com Description: ------------ According to http://php.net/manual/en/function.hash-algos.php sha512/224 and sha512/256 are not supported algorithms. They were initially defined FIPS 180-4 in March 2012: https://www.federalregister.gov/articles/2012/03/06/2012-5400/announcing-approval-of-federal-information-processing-standard-fips-publication-180-4-secure-hash sha224 and sha256 utilize 32-bit integers and process messages in 512-bit chunks. sha384, sha512, sha512/224 and sha512/256 utilize 64-bit integers and process messages in 1024-bit chunks. The only difference between these four algorithms is that they have different initial values for the hash. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71177&edit=1

« previous php.bugs (#201084) next »