summaryrefslogtreecommitdiffstats
path: root/Lib/hashlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/hashlib.py')
-rw-r--r--Lib/hashlib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/hashlib.py b/Lib/hashlib.py
index 40ccdec..2d5e92e 100644
--- a/Lib/hashlib.py
+++ b/Lib/hashlib.py
@@ -101,6 +101,9 @@ def __get_builtin_constructor(name):
def __get_openssl_constructor(name):
+ if name in {'blake2b', 'blake2s'}:
+ # Prefer our blake2 implementation.
+ return __get_builtin_constructor(name)
try:
f = getattr(_hashlib, 'openssl_' + name)
# Allow the C module to raise ValueError. The function will be