php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #68425 New hash functions for PHP 7
Submitted: 2014-11-14 18:49 UTC Modified: 2017-10-24 06:25 UTC
Votes:13
Avg. Score:4.8 ± 0.5
Reproduced:8 of 8 (100.0%)
Same Version:6 (75.0%)
Same OS:6 (75.0%)
From: scott at arciszewski dot me Assigned:
Status: Open Package: hash related
PHP Version: master-Git-2014-11-14 (Git) OS: Any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: scott at arciszewski dot me
New email:
PHP Version: OS:

 

 [2014-11-14 18:49 UTC] scott at arciszewski dot me
Description:
------------
For PHP 7.0.0, I would like to see the following hash functions available for hash() and hash_hmac():

 * SHA-512/224
 * SHA-512/256
 * BLAKE-224
 * BLAKE-256
 * BLAKE-384
 * BLAKE-512
 * BLAKE2b
 * BLAKE2s
 * SHA3-224
 * SHA3-256
 * SHA3-384
 * SHA3-512

Test script:
---------------
echo hash('sha3,256', '');
// a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-14 04:42 UTC] pollita@php.net
-Assigned To: +Assigned To: pollita
 [2016-05-14 04:42 UTC] pollita@php.net
FYI, the sha methods you listed are already in PHP 7.1
I'll take a look at the blake algos...
 [2017-10-24 06:25 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: pollita +Assigned To:
 [2021-01-08 14:47 UTC] cmb@php.net
The following pull request has been associated:

Patch Name: BLAKE3 hash support
On GitHub:  https://github.com/php/php-src/pull/6358
Patch:      https://github.com/php/php-src/pull/6358.patch
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 21:01:28 2024 UTC