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:
parent
659ef2f0a8
commit
cb0c0d02fb
@ -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())};
|
||||
|
||||
// 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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user