1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

refactor(crypto): explicitly ignore return value

This commit is contained in:
Ondřej Vejpustek 2024-04-01 21:14:14 +02:00
parent 80029823be
commit 057b927e99

View File

@ -365,8 +365,10 @@ int zkp_ecdsa_verify_digest(const ecdsa_curve *curve,
}
if (result == 0) {
secp256k1_ecdsa_signature_normalize(context_read_only, &signature,
&signature);
(void)secp256k1_ecdsa_signature_normalize(
context_read_only, &signature,
&signature); // The return value inidicates whether the signature was
// already normalized
if (secp256k1_ecdsa_verify(context_read_only, &signature, digest,
&public_key) != 1) {