From a4c02cc75901b5d5d482d1384003f445e3be83dc Mon Sep 17 00:00:00 2001 From: Michael Hamburg Date: Tue, 23 May 2017 16:10:44 -0700 Subject: [PATCH] better test --- test/test_decaf.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/test_decaf.cxx b/test/test_decaf.cxx index 99a827a..dd3a16e 100644 --- a/test/test_decaf.cxx +++ b/test/test_decaf.cxx @@ -600,12 +600,18 @@ static void run() { }; /* template struct Tests */ static void test_xof() { + /* TODO: more testing of XOFs */ Test test("XOF"); + SpongeRng rng(Block("test_xof"),SpongeRng::DETERMINISTIC); - FixedArrayBuffer<1024> a,b; + FixedArrayBuffer<1024> a,b,c; + rng.read(c); SHAKE<128> s1, s2; unsigned i; + for (i=0; i