[MacPorts] #63857: PythonX: ripemd160 not supported with openssl3

MacPorts noreply at macports.org
Tue Nov 9 00:56:05 UTC 2021


#63857: PythonX: ripemd160 not supported with openssl3
-------------------------------------------------+-------------------------
  Reporter:  cculianu                            |      Owner:  jmroot
      Type:  defect                              |     Status:  assigned
  Priority:  Normal                              |  Milestone:
 Component:  ports                               |    Version:
Resolution:                                      |   Keywords:
      Port:  python310 python39 python38         |
  python37 python36                              |
-------------------------------------------------+-------------------------

Comment (by mouse07410):

 OK, following the guidance received upstream, to use RIPEMD160 (and other
 algorithms form the legacy provider), one needs to modify
 {{{openssl.cnf}}} along these lines:
 {{{
 openssl_conf = openssl_init

 [openssl_init]
 providers = provider_sect

 [provider_sect]
 default = default_sect
 legacy = legacy_sect

 [default_sect]
 activate = 1

 [legacy_sect]
 activate = 1
 }}}

 After doing that, I see
 {{{
 $ openssl3 speed ripemd160
 Doing rmd160 for 3s on 16 size blocks: 6766057 rmd160's in 3.00s
 Doing rmd160 for 3s on 64 size blocks: 4862997 rmd160's in 2.99s
 Doing rmd160 for 3s on 256 size blocks: 2684597 rmd160's in 3.00s
 Doing rmd160 for 3s on 1024 size blocks: 953442 rmd160's in 2.99s
 Doing rmd160 for 3s on 8192 size blocks: 137347 rmd160's in 3.00s
 Doing rmd160 for 3s on 16384 size blocks: 69022 rmd160's in 2.99s
 version: 3.1.0-dev
 built on: Mon Nov  8 22:40:20 2021 UTC
 options: bn(64,64)
 compiler: clang -fPIC -arch x86_64 -O3 -std=gnu18 -march=native -isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
 -g -DL_ENDIAN -DOPENSSL_PIC -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DZLIB
 -DZLIB_SHARED
 CPUINFO: OPENSSL_ia32cap=0x7ffaf3bfffebffff:0x40000008029c67af
 The 'numbers' are in 1000s of bytes per second processed.
 type             16 bytes     64 bytes    256 bytes   1024 bytes   8192
 bytes  16384 bytes
 rmd160           36085.64k   104090.91k   229085.61k   326529.97k
 375048.87k   378212.86k
 $
 }}}

 This is with OpenSSL-3.1.0-dev that I'm tracking locally, but I'm sure it
 will be the same with 3.0.0.

-- 
Ticket URL: <https://trac.macports.org/ticket/63857#comment:33>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list