summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2023-02-16 06:08:20 (GMT)
committerGitHub <noreply@github.com>2023-02-16 06:08:20 (GMT)
commit0b13575e74ff3321364a3389eda6b4e92792afe1 (patch)
tree1fc6775cb290958f1c4d0e98c17300629f8aa9c4 /Python
parent89ac665891dec1988bedec2ce9b2c4d016502a49 (diff)
downloadcpython-0b13575e74ff3321364a3389eda6b4e92792afe1.zip
cpython-0b13575e74ff3321364a3389eda6b4e92792afe1.tar.gz
cpython-0b13575e74ff3321364a3389eda6b4e92792afe1.tar.bz2
gh-99108: Refactor _sha256 & _sha512 into _sha2. (#101924)
This merges their code. They're backed by the same single HACL* static library, having them be a single module simplifies maintenance. This should unbreak the wasm enscripten builds that currently fail due to linking in --whole-archive mode and the HACL* library appearing twice. Long unnoticed error fixed: _sha512.SHA384Type was doubly assigned and was actually SHA512Type. Nobody depends on those internal names. Also rename LIBHACL_ make vars to LIBHACL_SHA2_ in preperation for other future HACL things.
Diffstat (limited to 'Python')
-rw-r--r--Python/stdlib_module_names.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/stdlib_module_names.h b/Python/stdlib_module_names.h
index 4e7dfb1..e9f0061 100644
--- a/Python/stdlib_module_names.h
+++ b/Python/stdlib_module_names.h
@@ -63,9 +63,8 @@ static const char* _Py_stdlib_module_names[] = {
"_random",
"_scproxy",
"_sha1",
-"_sha256",
+"_sha2",
"_sha3",
-"_sha512",
"_signal",
"_sitebuiltins",
"_socket",