Issue #27928: Add scrypt (password-based key derivation function) to hashlib module (requires OpenSSL 1.1.0).

This commit is contained in:
Christian Heimes 2016-09-06 20:22:28 +02:00
parent ac041c0aa7
commit 39093e9e68
6 changed files with 262 additions and 0 deletions

View file

@ -202,6 +202,12 @@ except ImportError:
return dkey[:dklen]
try:
# OpenSSL's scrypt requires OpenSSL 1.1+
from _hashlib import scrypt
except ImportError:
pass
for __func_name in __always_supported:
# try them all, some may not work due to the OpenSSL