Req #79492 [NEW]: add BLAKE3 hash
| From: | divinity76 at gmail dot com | Date: | Sun, 19 Apr 2020 12:40:15 +0000 |
| Subject: | Req #79492 [NEW]: add BLAKE3 hash | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-226667@lists.php.net to get a copy of this message | ||
From: divinity76 at gmail dot com
Operating system: irrelevant
PHP version: Next Minor Version
Package: hash related
Bug Type: Feature/Change Request
Bug description:add BLAKE3 hash
Description:
------------
I wish for BLAKE3 ( https://github.com/BLAKE3-team/BLAKE3 ) to be
natively supported in PHP, it's a cryptographically-secure hash designed
for speed, some highlights:
- Secure, unlike MD5 and SHA-1. And secure against length extension,
unlike SHA-2.
- Much faster than MD5, SHA-1, SHA-2, SHA-3, it's over 17 times faster
than SHA3-256 on this chart:
https://github.com/BLAKE3-team/BLAKE3/blob/master/media/speed.svg
,
with speed rivaling (and surpassing) that of KangarooTwelve (which is
another CS-secure hash designed for speed, based on SHA-3)
- Capable of incremental updates and verified streaming
- A PRF, MAC, KDF, and XOF, as well as a regular hash.
- it's the latest iteration of the BLAKE hash, and the original BLAKE
hash was a SHA3-finalist (which ultimately lost to Keccak in the final
round)
Test script:
---------------
<?php
var_dump(hash("BLAKE3", "test", false));
Expected result:
----------------
string(64)
"4878ca0425c739fa427f7eda20fe845f6b2e46ba5fe2a14df5b1e32f50603215"
Actual result:
--------------
Warning: hash(): Unknown hashing algorithm: BLAKE3 in /in/K4p1O on line
3
bool(false)
--
Edit bug report at https://bugs.php.net/bug.php?id=79492&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79492&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79492&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79492&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79492&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79492&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79492&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79492&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79492&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79492&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79492&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79492&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79492&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79492&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79492&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79492&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79492&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79492&r=mysqlcfg