ringct: add sc_check calls in MLSAG_Ver for ss and cc

luigi1111's recommendation
pull/95/head
moneromooo-monero 8 years ago
parent 2f1732a7e5
commit 3b00527500
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -259,6 +259,11 @@ namespace rct {
}
CHECK_AND_ASSERT_MES(dsRows <= rows, false, "Bad dsRows value");
for (size_t i = 0; i < rv.ss.size(); ++i)
for (size_t j = 0; j < rv.ss[i].size(); ++j)
CHECK_AND_ASSERT_MES(sc_check(rv.ss[i][j].bytes) == 0, false, "Bad ss slot");
CHECK_AND_ASSERT_MES(sc_check(rv.cc.bytes) == 0, false, "Bad cc");
size_t i = 0, j = 0, ii = 0;
key c, L, R, Hi;
key c_old = copy(rv.cc);

Loading…
Cancel
Save