Changes between Version 1 and Version 3 of Ticket #63857


Ignore:
Timestamp:
Nov 8, 2021, 8:15:40 AM (2 years ago)
Author:
cculianu (Calin Culianu)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63857

    • Property Port python added
  • Ticket #63857 – Description

    v1 v3  
    11Python 3.6, 3.7, 3.8, and 3.9 can't now use the hashlib hasher "ripemd160", even though that hasher is listed as "available".
     2
     3See below:
     4
     5
     6{{{
     7$ python3
     8Python 3.10.0 (default, Nov  7 2021, 21:08:03) [Clang 12.0.5 (clang-1205.0.22.11)] on darwin
     9Type "help", "copyright", "credits" or "license" for more information.
     10>>> import hashlib
     11>>> hashlib.algorithms_available
     12{'sha512_224', 'ripemd160', 'md5-sha1', 'sha1', 'shake_128', 'shake_256', 'sha512_256', 'sha256', 'whirlpool', 'blake2b', 'sha3_512', 'sha384', 'sm3', 'blake2s', 'sha3_224', 'sha224', 'mdc2', 'md4', 'md5', 'sha3_256', 'sha3_384', 'sha512'}
     13>>> hashlib.new('ripemd160')
     14Traceback (most recent call last):
     15  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/hashlib.py", line 160, in __hash_new
     16    return _hashlib.new(name, data, **kwargs)
     17ValueError: [digital envelope routines] initialization error
     18
     19During handling of the above exception, another exception occurred:
     20
     21Traceback (most recent call last):
     22  File "<stdin>", line 1, in <module>
     23  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/hashlib.py", line 166, in __hash_new
     24    return __get_builtin_constructor(name)(data)
     25  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/hashlib.py", line 123, in __get_builtin_constructor
     26    raise ValueError('unsupported hash type ' + name)
     27ValueError: unsupported hash type ripemd160
     28
     29}}}
    230
    331As part of the upgrade both openssl3 and Python3.x (all 4) were rebuilt. I'm on Big Sur.