Req #71177 [Opn]: add sha512/224 and sha512/256

[email protected] ("zelnaga at gmail dot com")
Newsgroups php.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=71177&edit=1

 ID:                 71177
 User updated by:    zelnaga at gmail dot com
 Reported by:        zelnaga at gmail dot com
 Summary:            add sha512/224 and sha512/256
 Status:             Open
 Type:               Feature/Change Request
 Package:            hash related
 Operating System:   Ubuntu
 PHP Version:        7.0.1
 Block user comment: N
 Private report:     N

 New Comment:

Also, see http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf#page=35


Previous Comments:
------------------------------------------------------------------------
[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.