commit | db5aed931f8a617f7b63e773f62db468fe9c5ca1 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@python.org> | Wed May 27 21:50:06 2020 +0200 |
committer | GitHub <noreply@github.com> | Wed May 27 21:50:06 2020 +0200 |
tree | 64a2a3bf0865ac93b92d8361b6d3b51f1123cb0a | |
parent | 210a137396979d747c2602eeef46c34fc4955448 [diff] |
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.