php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66698 Missing FNV1a32 and FNV1a64 hash functions
Submitted: 2014-02-12 10:04 UTC Modified: -
From: slusarz at curecanti dot org Assigned:
Status: Closed Package: hash related
PHP Version: master-Git-2014-02-12 (Git) OS: Linux
Private report: No CVE-ID: None
 [2014-02-12 10:04 UTC] slusarz at curecanti dot org
Description:
------------
Looking at internal PHP code, there is existing code to allow for the 1a variants of FNV (http://www.isthe.com/chongo/tech/comp/fnv/index.html#FNV-1a).  However, this code is never used - the only option with has() is the original algorithms, not the 1a algorithms.

This patch adds support for the 1a variants to the hash list.  I'm considering this a bug report, rather than a feature request, since the code to do the hashing already exists... this just seems to be an oversight.

Patch will be provided on Github.


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-03-06 22:40 UTC] nikic@php.net
Automatic comment on behalf of slusarz@curecanti.org
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b88387d341c510ed434b333d640424f9fe3cc567
Log: Fix #66698: Add fnv1a32 and fnv1a64 hash options
 [2014-03-06 22:40 UTC] nikic@php.net
-Status: Open +Status: Closed
 [2014-03-10 11:04 UTC] ab@php.net
Automatic comment on behalf of slusarz@curecanti.org
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b88387d341c510ed434b333d640424f9fe3cc567
Log: Fix #66698: Add fnv1a32 and fnv1a64 hash options
 [2014-03-10 11:29 UTC] ab@php.net
Automatic comment on behalf of slusarz@curecanti.org
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b88387d341c510ed434b333d640424f9fe3cc567
Log: Fix #66698: Add fnv1a32 and fnv1a64 hash options
 [2014-04-10 04:47 UTC] tyrael@php.net
Automatic comment on behalf of slusarz@curecanti.org
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b88387d341c510ed434b333d640424f9fe3cc567
Log: Fix #66698: Add fnv1a32 and fnv1a64 hash options
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 03:01:29 2024 UTC