OpenSSL 3 removed `ripemd160`, see [[https://github.com/openssl/openssl/issues/16994 | openssl/openssl#16994]]
Thus, ourthe functional tests fail on systems with OpenSSL 3.
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/23716 | core#23716]]