[Python-Dev] New hash algorithms: SHA3, SHAKE, BLAKE2, truncated SHA512 (original) (raw)

Christian Heimes christian at python.org
Sat May 28 17:30:37 EDT 2016


On 2016-05-28 14:06, Guido van Rossum wrote:

But you could choose which implementation to use at compile time based on the autoconf output, right?

We compile all modules and then let hashlib decide which implementation is used. hashlib prefers OpenSSL but falls back to our builtin modules. For MD5, SHA1 and SHA2 OpenSSL's implementation has better performance (up to twice the speed).



More information about the Python-Dev mailing list