Skip to content

Commit 7b96701

Browse files
authored
gh-133042: disable HACL* HMAC on Emscripten (#133064)
1 parent d8c118f commit 7b96701

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

configure

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+4-1
Original file line numberDiff line numberDiff line change
@@ -8051,7 +8051,10 @@ PY_HACL_CREATE_MODULE([BLAKE2], [_blake2], [test "$with_builtin_blake2" = yes])
80518051
dnl HMAC builtin library does not need OpenSSL for now. In the future
80528052
dnl we might want to rely on OpenSSL EVP/NID interface or implement
80538053
dnl our own for algorithm resolution.
8054-
PY_HACL_CREATE_MODULE([HMAC], [_hmac], [])
8054+
dnl
8055+
dnl For Emscripten, we disable HACL* HMAC as it is tricky to make it work.
8056+
dnl See https://github.com/python/cpython/issues/133042.
8057+
PY_HACL_CREATE_MODULE([HMAC], [_hmac], [test "$ac_sys_system" != "Emscripten"])
80558058
### end(cryptographic primitives)
80568059

80578060
PY_STDLIB_MOD([_ctypes],

0 commit comments

Comments
 (0)