summaryrefslogtreecommitdiffstats
path: root/Modules/_hacl/python_hacl_namespaces.h
diff options
context:
space:
mode:
authorJonathan Protzenko <protz@microsoft.com>2023-02-22 21:18:43 (GMT)
committerGitHub <noreply@github.com>2023-02-22 21:18:43 (GMT)
commitfcadc7e405141847ab10daf5cff16be880083a24 (patch)
tree404c9bc7b90e95882765731171033632aa6c9b80 /Modules/_hacl/python_hacl_namespaces.h
parent96bf24380e44dfa1516d65480250995e737c0cb9 (diff)
downloadcpython-fcadc7e405141847ab10daf5cff16be880083a24.zip
cpython-fcadc7e405141847ab10daf5cff16be880083a24.tar.gz
cpython-fcadc7e405141847ab10daf5cff16be880083a24.tar.bz2
gh-99108: Import MD5 and SHA1 from HACL* (#102089)
Replaces our fallback non-OpenSSL MD5 and SHA1 implementations with those from HACL* as we've already done with SHA2.
Diffstat (limited to 'Modules/_hacl/python_hacl_namespaces.h')
-rw-r--r--Modules/_hacl/python_hacl_namespaces.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Modules/_hacl/python_hacl_namespaces.h b/Modules/_hacl/python_hacl_namespaces.h
index ac12f38..ee28f24 100644
--- a/Modules/_hacl/python_hacl_namespaces.h
+++ b/Modules/_hacl/python_hacl_namespaces.h
@@ -43,4 +43,21 @@
#define Hacl_Streaming_SHA2_sha512 python_hashlib_Hacl_Streaming_SHA2_sha512
#define Hacl_Streaming_SHA2_sha384 python_hashlib_Hacl_Streaming_SHA2_sha384
+#define Hacl_Streaming_MD5_legacy_create_in python_hashlib_Hacl_Streaming_MD5_legacy_create_in
+#define Hacl_Streaming_MD5_legacy_init python_hashlib_Hacl_Streaming_MD5_legacy_init
+#define Hacl_Streaming_MD5_legacy_update python_hashlib_Hacl_Streaming_MD5_legacy_update
+#define Hacl_Streaming_MD5_legacy_finish python_hashlib_Hacl_Streaming_MD5_legacy_finish
+#define Hacl_Streaming_MD5_legacy_free python_hashlib_Hacl_Streaming_MD5_legacy_free
+#define Hacl_Streaming_MD5_legacy_copy python_hashlib_Hacl_Streaming_MD5_legacy_copy
+#define Hacl_Streaming_MD5_legacy_hash python_hashlib_Hacl_Streaming_MD5_legacy_hash
+
+#define Hacl_Streaming_SHA1_legacy_create_in python_hashlib_Hacl_Streaming_SHA1_legacy_create_in
+#define Hacl_Streaming_SHA1_legacy_init python_hashlib_Hacl_Streaming_SHA1_legacy_init
+#define Hacl_Streaming_SHA1_legacy_update python_hashlib_Hacl_Streaming_SHA1_legacy_update
+#define Hacl_Streaming_SHA1_legacy_finish python_hashlib_Hacl_Streaming_SHA1_legacy_finish
+#define Hacl_Streaming_SHA1_legacy_free python_hashlib_Hacl_Streaming_SHA1_legacy_free
+#define Hacl_Streaming_SHA1_legacy_copy python_hashlib_Hacl_Streaming_SHA1_legacy_copy
+#define Hacl_Streaming_SHA1_legacy_hash python_hashlib_Hacl_Streaming_SHA1_legacy_hash
+
+
#endif // _PYTHON_HACL_NAMESPACES_H