crypto: use explicit algorithm fetching for openssl >=3.0
Since OpenSSL 3.0, the functions EVP_sha256, EVP_sha512 etc. use internal locking to accommodate internal changes to EVP_MD. Despite being negligent, it still adds up when called repeatedly. Switch to "explicit fetching" [1] to remove the unnecessary locking. OpenSSL <3.0 and LibreSSL is unaffected by this. [1]: https://docs.openssl.org/3.1/man7/crypto/#explicit-fetching
Please register or sign in to comment