mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-13 22:53:27 +01:00
crypto: error out where appropriate
This commit is contained in:
parent
54f7429cf6
commit
e70e8a69f4
@ -230,7 +230,7 @@ namespace crypto {
|
|||||||
buf.h = prefix_hash;
|
buf.h = prefix_hash;
|
||||||
buf.key = pub;
|
buf.key = pub;
|
||||||
if (ge_frombytes_vartime(&tmp3, &pub) != 0) {
|
if (ge_frombytes_vartime(&tmp3, &pub) != 0) {
|
||||||
abort();
|
return false;
|
||||||
}
|
}
|
||||||
if (sc_check(&sig.c) != 0 || sc_check(&sig.r) != 0) {
|
if (sc_check(&sig.c) != 0 || sc_check(&sig.r) != 0) {
|
||||||
return false;
|
return false;
|
||||||
@ -364,7 +364,7 @@ POP_WARNINGS
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (ge_frombytes_vartime(&tmp3, &*pubs[i]) != 0) {
|
if (ge_frombytes_vartime(&tmp3, &*pubs[i]) != 0) {
|
||||||
abort();
|
return false;
|
||||||
}
|
}
|
||||||
ge_double_scalarmult_base_vartime(&tmp2, &sig[i].c, &tmp3, &sig[i].r);
|
ge_double_scalarmult_base_vartime(&tmp2, &sig[i].c, &tmp3, &sig[i].r);
|
||||||
ge_tobytes(&buf->ab[i].a, &tmp2);
|
ge_tobytes(&buf->ab[i].a, &tmp2);
|
||||||
|
Loading…
Reference in New Issue
Block a user