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:12
Avg. Score:4.8 ± 0.6
Reproduced:7 of 7 (100.0%)
Same Version:6 (85.7%)
Same OS:6 (85.7%)
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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Thu Apr 22 18:01:24 2021 UTC