aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/crypto.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:24:19 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:28:29 +0100
commite70e8a69f4611914a97aa2c856cbbb262945a186 (patch)
tree80435b8639ed95c33e85ce6894cb39c7bd40e75c /src/crypto/crypto.cpp
parentringct: allow no outputs, and add tests for this and fees (diff)
downloadmonero-e70e8a69f4611914a97aa2c856cbbb262945a186.tar.xz
crypto: error out where appropriate
Diffstat (limited to '')
-rw-r--r--src/crypto/crypto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/crypto.cpp b/src/crypto/crypto.cpp
index f5e655274..f0ee3bdc3 100644
--- a/src/crypto/crypto.cpp
+++ b/src/crypto/crypto.cpp
@@ -230,7 +230,7 @@ namespace crypto {
buf.h = prefix_hash;
buf.key = pub;
if (ge_frombytes_vartime(&tmp3, &pub) != 0) {
- abort();
+ return false;
}
if (sc_check(&sig.c) != 0 || sc_check(&sig.r) != 0) {
return false;
@@ -364,7 +364,7 @@ POP_WARNINGS
return false;
}
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_tobytes(&buf->ab[i].a, &tmp2);