Include OpenSSL legacy.so for ripemd160 and whirlpool
OpenSSL 3.0 moved support for some crypto hashes (like ripemd160 and whirlpool) into /usr/lib/${arch}/ossl-modules/legacy.so
. Include this library if the crypto hashes ripemd160 or whirlpool were detected.
Bug-Ubuntu: https://launchpad.net/bugs/1979159