summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2021-02-12 19:29:36 +0100
committerYves Orton <demerphq@gmail.com>2021-02-13 09:26:05 +0100
commit8bc8b6db1481526395ac3feb7ea9e69413e76351 (patch)
treefafa4cf98ec99d1ee03feb5f1b037a09a471c837
parentf43079cb514e3d0be0036424695438ae3fb58451 (diff)
downloadperl-8bc8b6db1481526395ac3feb7ea9e69413e76351.tar.gz
use SIPHASH 1-3 as the default 64 bit hash
Stadtx should be deprecated and removed after this
-rw-r--r--INSTALL5
-rw-r--r--hv_func.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/INSTALL b/INSTALL
index 10467fc4c9..1878b0ed2c 100644
--- a/INSTALL
+++ b/INSTALL
@@ -368,7 +368,7 @@ insecure and are not recommended for production use.>
Since Perl 5.18 we have included support for multiple hash functions,
although from time to time we change which functions we support,
-and which function is default (currently SBOX+STADTX on 64 bit builds
+and which function is default (currently SBOX+SIPHASH13 on 64 bit builds
and SBOX+ZAPHOD32 for 32 bit builds). You can choose a different
algorithm by defining one of the following symbols during configure.
Note that there are security implications regarding which hash function you choose
@@ -380,6 +380,9 @@ to be, with the one believed to be most secure at release time being PERL_HASH_F
PERL_HASH_FUNC_ZAPHOD32
PERL_HASH_FUNC_STADTX
+Note that use of PERL_HASH_FUNC_STADTX is deprecated and will be removed
+in a future release.
+
In addition, these, (or custom hash functions), may be "fronted" by the
SBOX32 hash function for keys under a chosen size. This hash function is
special in that it has proven theoretical security properties, and is very
diff --git a/hv_func.h b/hv_func.h
index 7661f4076c..6bbf41ee9d 100644
--- a/hv_func.h
+++ b/hv_func.h
@@ -17,7 +17,7 @@
|| defined(PERL_HASH_FUNC_ZAPHOD32) \
)
# ifdef CAN64BITHASH
-# define PERL_HASH_FUNC_STADTX
+# define PERL_HASH_FUNC_SIPHASH13
# else
# define PERL_HASH_FUNC_ZAPHOD32
# endif