From 46a0dcc1d2a31b41f5c75009d70476010f7fbacf Mon Sep 17 00:00:00 2001 From: luigi1111 Date: Thu, 17 Nov 2016 23:27:00 +0000 Subject: ringct: luigi1111's changes to fix and speedup Borromean sigs --- tests/unit_tests/ringct.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/unit_tests/ringct.cpp b/tests/unit_tests/ringct.cpp index 5ab77d4aa..f6409d1ae 100644 --- a/tests/unit_tests/ringct.cpp +++ b/tests/unit_tests/ringct.cpp @@ -57,19 +57,15 @@ TEST(ringct, Borromean) xv[j] = skGen(); if ( (int)indi[j] == 0 ) { - P1v[j] = scalarmultBase(xv[j]); - P2v[j] = pkGen(); - + scalarmultBase(P1v[j], xv[j]); } else { - - P2v[j] = scalarmultBase(xv[j]); - P1v[j] = pkGen(); - + addKeys1(P1v[j], xv[j], H2[j]); } + subKeys(P2v[j], P1v[j], H2[j]); } //#true one - boro bb = genBorromean(xv, P1v, P2v, indi); + boroSig bb = genBorromean(xv, P1v, P2v, indi); ASSERT_TRUE(verifyBorromean(bb, P1v, P2v)); //#false one -- cgit v1.2.3