Commit a4c02cc7 authored by Michael Hamburg's avatar Michael Hamburg

better test

parent 72484a05
......@@ -600,12 +600,18 @@ static void run() {
}; /* template<GroupId GROUP> 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;;
SHAKE<128> s1, s2;
unsigned i;
for (i=0; i<c.size(); i++) s1.update(c.slice(i,1));
for (i=0; i<a.size(); i++) s1.output(a.slice(i,1));
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