develooper Front page | perl.perl5.changes | Postings from June 2020

[Perl/perl5] 8bf058: hv_func.h: remove stadtx and zaphod hash

Yves Orton
June 20, 2020 22:00
[Perl/perl5] 8bf058: hv_func.h: remove stadtx and zaphod hash
Message ID:
  Branch: refs/heads/smoke-me/siphash13_chaskey
  Commit: 8bf05864e519157980254fda40bebdfa5be5da80
  Author: Yves Orton <>
  Date:   2020-06-20 (Sat, 20 Jun 2020)

  Changed paths:
    M hv_func.h
    M sbox32_hash.h
    R stadtx_hash.h
    R zaphod32_hash.h

  Log Message:
  hv_func.h: remove stadtx and zaphod hash

I would prefer not to carry the weight of the Perl hash function
on my shoulder. It is too much responsibility, and there are other
hash functions available that are known to more secure and still
relatively fast. So we shall use them instead.

The new default for 64 bit builds will be Siphash 1-3 (SIPHASH13),
for 32 bit builds it will be Chaskey.

We should document what to do to add a new hash function so people
can easily use their own.

One problem we have is that since the hash function is a macro
XS modules must be recompiled if we change the hash function and
they use any hashing functions. :-( I really wish we could change
the hash function and not have to do that. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About