1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-12 11:10:33 +00:00

Fix ECDSA P-521 in GnuTLS

This commit is contained in:
Carles Fernandez 2024-07-18 08:43:03 +02:00
parent 659ef2f0a8
commit cb0c0d02fb
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -309,7 +309,7 @@ bool Gnss_Crypto::verify_signature_ecdsa_p521(const std::vector<uint8_t>& messag
gnutls_datum_t signature_data = {der_sig.data(), static_cast<unsigned int>(der_sig.size())}; gnutls_datum_t signature_data = {der_sig.data(), static_cast<unsigned int>(der_sig.size())};
// Verify the ECDSA signature // 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) if (ret >= 0)
{ {