aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-02-09 22:01:43 +0100
committerMattias Andrée <maandree@kth.se>2019-02-09 22:01:43 +0100
commit3d103c6bf756ce7a23833067fe2056622887491d (patch)
tree186e85e546128117ba17881a495af569083e1328 /test.c
parentFix makefile add add OSCONFIGFILE (diff)
downloadlibkeccak-3d103c6bf756ce7a23833067fe2056622887491d.tar.gz
libkeccak-3d103c6bf756ce7a23833067fe2056622887491d.tar.bz2
libkeccak-3d103c6bf756ce7a23833067fe2056622887491d.tar.xz
Add test from github issue #101.1.5
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.c')
-rw-r--r--test.c3
1 files changed, 3 insertions, 0 deletions
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;