mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 12:28:09 +00:00
refactor(crypto): explicitly ignore return value
This commit is contained in:
parent
80029823be
commit
057b927e99
@ -365,8 +365,10 @@ int zkp_ecdsa_verify_digest(const ecdsa_curve *curve,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (result == 0) {
|
if (result == 0) {
|
||||||
secp256k1_ecdsa_signature_normalize(context_read_only, &signature,
|
(void)secp256k1_ecdsa_signature_normalize(
|
||||||
&signature);
|
context_read_only, &signature,
|
||||||
|
&signature); // The return value inidicates whether the signature was
|
||||||
|
// already normalized
|
||||||
|
|
||||||
if (secp256k1_ecdsa_verify(context_read_only, &signature, digest,
|
if (secp256k1_ecdsa_verify(context_read_only, &signature, digest,
|
||||||
&public_key) != 1) {
|
&public_key) != 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user