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

[Perl/perl5] fd5f12: hv_func.h: Move static declaration so it workswit...

From:
Yves Orton
Date:
June 20, 2020 21:41
Subject:
[Perl/perl5] fd5f12: hv_func.h: Move static declaration so it workswit...
Message ID:
Perl/perl5/push/refs/heads/smoke-me/siphash13_chaskey/000000-740e6c@github.com
  Branch: refs/heads/smoke-me/siphash13_chaskey
  Home:   https://github.com/Perl/perl5
  Commit: fd5f12d9eefb7b7a68783fd49714fc028289c425
      https://github.com/Perl/perl5/commit/fd5f12d9eefb7b7a68783fd49714fc028289c425
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2020-06-20 (Sat, 20 Jun 2020)

  Changed paths:
    M hv_func.h

  Log Message:
  -----------
  hv_func.h: Move static declaration so it works with Siphash builds


  Commit: cc4e39e4bf3b4b8e1e866a01ca7599747c90788a
      https://github.com/Perl/perl5/commit/cc4e39e4bf3b4b8e1e866a01ca7599747c90788a
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2020-06-20 (Sat, 20 Jun 2020)

  Changed paths:
    M MANIFEST
    A chaskey_hash.h
    M hv_func.h

  Log Message:
  -----------
  hv_func.h: add support for chaskey_hash

This is a high quality 32 bit hash based on Siphash. https://mouha.be/chaskey/


  Commit: 083bf089e2ff5cec3a41ad4a3e6ded264760e02f
      https://github.com/Perl/perl5/commit/083bf089e2ff5cec3a41ad4a3e6ded264760e02f
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2020-06-20 (Sat, 20 Jun 2020)

  Changed paths:
    M hv_func.h

  Log Message:
  -----------
  fixup


  Commit: 740e6c4912ddd8b10f4a52821a6a70d53680ea68
      https://github.com/Perl/perl5/commit/740e6c4912ddd8b10f4a52821a6a70d53680ea68
  Author: Yves Orton <demerphq@gmail.com>
  Date:   2020-06-20 (Sat, 20 Jun 2020)

  Changed paths:
    M INSTALL
    M MANIFEST
    M hv_func.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. https://mouha.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.


Compare: https://github.com/Perl/perl5/compare/fd5f12d9eefb%5E...740e6c4912dd



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About