summaryrefslogtreecommitdiffstats
path: root/pyconfig.h.in
diff options
context:
space:
mode:
authorJonathan Protzenko <protz@microsoft.com>2024-08-13 21:42:19 (GMT)
committerGitHub <noreply@github.com>2024-08-13 21:42:19 (GMT)
commit325e9b8ef400b86fb077aa40d5cb8cec6e4df7bb (patch)
tree9c1677183d3a508207f05097e6751edce520d35e /pyconfig.h.in
parentee1b8ce26e700350e47a5f65201097121c41912e (diff)
downloadcpython-325e9b8ef400b86fb077aa40d5cb8cec6e4df7bb.zip
cpython-325e9b8ef400b86fb077aa40d5cb8cec6e4df7bb.tar.gz
cpython-325e9b8ef400b86fb077aa40d5cb8cec6e4df7bb.tar.bz2
gh-99108: Add HACL* Blake2 implementation to hashlib (GH-119316)
This replaces the existing hashlib Blake2 module with a single implementation that uses HACL\*'s Blake2b/Blake2s implementations. We added support for all the modes exposed by the Python API, including tree hashing, leaf nodes, and so on. We ported and merged all of these changes upstream in HACL\*, added test vectors based on Python's existing implementation, and exposed everything needed for hashlib. This was joint work done with @R1kM. See the PR for much discussion and benchmarking details. TL;DR: On many systems, 8-50% faster (!) than `libb2`, on some systems it appeared 10-20% slower than `libb2`.
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r--pyconfig.h.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in
index 8fbba7e..39978d1 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -54,6 +54,12 @@
/* Define if getpgrp() must be called as getpgrp(0). */
#undef GETPGRP_HAVE_ARG
+/* HACL* library can compile SIMD128 implementations */
+#undef HACL_CAN_COMPILE_SIMD128
+
+/* HACL* library can compile SIMD256 implementations */
+#undef HACL_CAN_COMPILE_SIMD256
+
/* Define if you have the 'accept' function. */
#undef HAVE_ACCEPT
@@ -670,9 +676,6 @@
/* Define to 1 if you have the `lchown' function. */
#undef HAVE_LCHOWN
-/* Define to 1 if you want to build _blake2 module with libb2 */
-#undef HAVE_LIBB2
-
/* Define to 1 if you have the `db' library (-ldb). */
#undef HAVE_LIBDB