Commit a32fd625 authored by Michael Hamburg's avatar Michael Hamburg

mark more things at toy

parent a01e875d
......@@ -319,7 +319,7 @@ static void macro() {
printf("CFRG crypto benchmarks:\n");
cfrg();
printf("\nSample crypto benchmarks:\n");
printf("\nToy crypto benchmarks:\n");
SpongeRng rng(Block("macro rng seed"),SpongeRng::DETERMINISTIC);
PrivateKey<Group> s1((NOINIT())), s2(rng);
PublicKey<Group> p1((NOINIT())), p2(s2);
......
......@@ -17,6 +17,7 @@
#include <valgrind/memcheck.h>
using namespace decaf;
using namespace decaf::TOY;
static const long NTESTS = 10;
......
......@@ -410,8 +410,8 @@ static void test_ec() {
}
}
static void test_crypto() {
Test test("Sample crypto");
static void test_toy_crypto() {
Test test("Toy crypto");
SpongeRng rng(Block("test_decaf_crypto"),SpongeRng::DETERMINISTIC);
for (int i=0; i<NTESTS && test.passing_now; i++) {
......@@ -580,7 +580,7 @@ static void run() {
test_eddsa();
test_cfrg_crypto();
test_cfrg_vectors();
test_crypto();
test_toy_crypto();
printf("\n");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment