Kaydet (Commit) 32a2ceea authored tarafından Christian Heimes's avatar Christian Heimes

Bypass __get_openssl_constructor() and always use our own blake2 implementation

üst cd14d5d2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment