From 3d103c6bf756ce7a23833067fe2056622887491d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 9 Feb 2019 22:01:43 +0100 Subject: Add test from github issue #10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- test.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test.c') diff --git a/test.c b/test.c index 168ced2..9831657 100644 --- a/test.c +++ b/test.c @@ -262,6 +262,9 @@ static int test_digest(void) if (sha3(224, "faktum desist thundered klen")) return -1; + answer = "c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"; + if (keccak_bits(256, "\x00", 0)) return -1; + answer = "a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a"; if (keccak_bits(256, "\x02", 2)) return -1; -- cgit v1.2.3-70-g09d2