Ensure EVP_MD_CTX_md returns the EVP_MD originally used