From cb0c0d02fb72ce8d42f2167e621c7c981862f591 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 18 Jul 2024 08:43:03 +0200 Subject: [PATCH] Fix ECDSA P-521 in GnuTLS --- src/core/system_parameters/gnss_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/system_parameters/gnss_crypto.cc b/src/core/system_parameters/gnss_crypto.cc index 7b1d837e0..0e98280cf 100644 --- a/src/core/system_parameters/gnss_crypto.cc +++ b/src/core/system_parameters/gnss_crypto.cc @@ -309,7 +309,7 @@ bool Gnss_Crypto::verify_signature_ecdsa_p521(const std::vector& messag gnutls_datum_t signature_data = {der_sig.data(), static_cast(der_sig.size())}; // Verify the ECDSA signature - ret = gnutls_pubkey_verify_data2(d_PublicKey, GNUTLS_SIGN_ECDSA_SHA512, 0, &digest_data, &signature_data); + ret = gnutls_pubkey_verify_hash2(d_PublicKey, GNUTLS_SIGN_ECDSA_SHA512, 0, &digest_data, &signature_data); if (ret >= 0) {