diff options
author | Christian Heimes <christian@python.org> | 2020-05-27 19:50:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 19:50:06 (GMT) |
commit | db5aed931f8a617f7b63e773f62db468fe9c5ca1 (patch) | |
tree | 64a2a3bf0865ac93b92d8361b6d3b51f1123cb0a /Misc | |
parent | 210a137396979d747c2602eeef46c34fc4955448 (diff) | |
download | cpython-db5aed931f8a617f7b63e773f62db468fe9c5ca1.zip cpython-db5aed931f8a617f7b63e773f62db468fe9c5ca1.tar.gz cpython-db5aed931f8a617f7b63e773f62db468fe9c5ca1.tar.bz2 |
bpo-40791: Use CRYPTO_memcmp() for compare_digest (#20456)
hashlib.compare_digest uses OpenSSL's CRYPTO_memcmp() function
when OpenSSL is available.
Note: The _operator module is a builtin module. I don't want to add
libcrypto dependency to libpython. Therefore I duplicated the wrapper
function and added a copy to _hashopenssl.c.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-05-27-18-04-52.bpo-40791.IzpNor.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-05-27-18-04-52.bpo-40791.IzpNor.rst b/Misc/NEWS.d/next/Library/2020-05-27-18-04-52.bpo-40791.IzpNor.rst new file mode 100644 index 0000000..b88f308 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-05-27-18-04-52.bpo-40791.IzpNor.rst @@ -0,0 +1,2 @@ +:func:`hashlib.compare_digest` uses OpenSSL's ``CRYPTO_memcmp()`` function +when OpenSSL is available. |