openssl: Add helper to determine EVP_MD from hash_algorithm_t