gh-133042: disable HACL* HMAC on Emscripten (#133064)

This commit is contained in:
Bénédikt Tran
2025-05-04 21:55:49 +02:00
committed by GitHub
parent d8c118f50d
commit 7b96701ccc
2 changed files with 5 additions and 2 deletions

2
configure generated vendored
View File

@@ -32811,7 +32811,7 @@ printf %s "checking for stdlib extension module _hmac... " >&6; }
if test "$py_cv_module__hmac" != "n/a"
then :
if true
if test "$ac_sys_system" != "Emscripten"
then :
if true
then :

View File

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