diff options
author | Jonathan Protzenko <protz@microsoft.com> | 2023-05-08 03:50:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 03:50:04 (GMT) |
commit | 15665d896bae9c3d8b60bd7210ac1b7dc533b093 (patch) | |
tree | 828d0c447265d301089c91aec0803cf67a51e4f8 /Tools/c-analyzer | |
parent | 01cc9c1ff79bf18fe34c05c6cd573e79ff9487c3 (diff) | |
download | cpython-15665d896bae9c3d8b60bd7210ac1b7dc533b093.zip cpython-15665d896bae9c3d8b60bd7210ac1b7dc533b093.tar.gz cpython-15665d896bae9c3d8b60bd7210ac1b7dc533b093.tar.bz2 |
gh-99108: Replace SHA3 implementation HACL* version (#103597)
Replaces our built-in SHA3 implementation with a verified one from the HACL* project.
This implementation is used when OpenSSL does not provide SHA3 or is not present.
3.11 shiped with a very slow tiny sha3 implementation to get off of the <=3.10 reference implementation that wound up having serious bugs. This brings us back to a reasonably performing built-in implementation consistent with what we've just replaced our other guaranteed available standard hash algorithms with: code from the HACL* project.
---------
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Tools/c-analyzer')
-rw-r--r-- | Tools/c-analyzer/cpython/_parser.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Tools/c-analyzer/cpython/_parser.py b/Tools/c-analyzer/cpython/_parser.py index 5924ab7..9bd54db 100644 --- a/Tools/c-analyzer/cpython/_parser.py +++ b/Tools/c-analyzer/cpython/_parser.py @@ -114,6 +114,7 @@ Modules/_hacl/*.h Modules/_hacl/include Modules/md5module.c Modules/_hacl/include Modules/sha1module.c Modules/_hacl/include Modules/sha2module.c Modules/_hacl/include +Modules/sha3module.c Modules/_hacl/include Objects/stringlib/*.h Objects # possible system-installed headers, just in case @@ -271,13 +272,6 @@ Modules/expat/xmlparse.c HAVE_EXPAT_CONFIG_H 1 Modules/expat/xmlparse.c XML_POOR_ENTROPY 1 Modules/_dbmmodule.c HAVE_GDBM_DASH_NDBM_H 1 -# from Modules/_sha3/sha3module.c -Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c PLATFORM_BYTE_ORDER 4321 # force big-endian -Modules/_sha3/kcp/*.c KeccakOpt 64 -Modules/_sha3/kcp/*.c KeccakP200_excluded 1 -Modules/_sha3/kcp/*.c KeccakP400_excluded 1 -Modules/_sha3/kcp/*.c KeccakP800_excluded 1 - # others Modules/_sre/sre_lib.h LOCAL(type) static inline type Modules/_sre/sre_lib.h SRE(F) sre_ucs2_##F |