Skip to content

Commit f649e9a

Browse files
committed
disable HACL* HMAC on Emscripten
1 parent 8b4fd24 commit f649e9a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

configure

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7990,7 +7990,10 @@ PY_HACL_CREATE_MODULE([BLAKE2], [_blake2], [test "$with_builtin_blake2" = yes])
79907990
dnl HMAC builtin library does not need OpenSSL for now. In the future
79917991
dnl we might want to rely on OpenSSL EVP/NID interface or implement
79927992
dnl our own for algorithm resolution.
7993-
PY_HACL_CREATE_MODULE([HMAC], [_hmac], [])
7993+
dnl
7994+
dnl For Emscripten, we disable HACL* HMAC as it is tricky to make it work.
7995+
dnl See https://github.com/python/cpython/issues/133042.
7996+
PY_HACL_CREATE_MODULE([HMAC], [_hmac], [test "$ac_sys_system" != "Emscripten"])
79947997
### end(cryptographic primitives)
79957998

79967999
PY_STDLIB_MOD([_ctypes],

0 commit comments

Comments
 (0)