diff options
author | Mattias Andrée <maandree@kth.se> | 2019-02-09 22:01:43 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-02-09 22:01:43 +0100 |
commit | 3d103c6bf756ce7a23833067fe2056622887491d (patch) | |
tree | 186e85e546128117ba17881a495af569083e1328 | |
parent | Fix makefile add add OSCONFIGFILE (diff) | |
download | libkeccak-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>
-rw-r--r-- | test.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |