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
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: slusarz at curecanti dot org
New email:
PHP Version: OS:

 

 [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

Pull Requests

Pull requests:

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: Wed Oct 16 04:01:27 2024 UTC