aboutsummaryrefslogtreecommitdiffstats
path: root/keccak_512.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-24 20:13:01 +0200
committerMattias Andrée <maandree@kth.se>2024-08-24 20:13:01 +0200
commitfebb5279f7bf3c86ec872c1b2ed1e024f73e64c5 (patch)
treeea6918fc1dcb29e11ce9399b8300a124cc0342cf /keccak_512.c
parentAdd support for Keccak, SHA3, SHAKE, and RawSHAKE via libkeccak>=1.3 (this version introduced zerocopy) (diff)
downloadlibhashsum-febb5279f7bf3c86ec872c1b2ed1e024f73e64c5.tar.gz
libhashsum-febb5279f7bf3c86ec872c1b2ed1e024f73e64c5.tar.bz2
libhashsum-febb5279f7bf3c86ec872c1b2ed1e024f73e64c5.tar.xz
Add BLAKE via libblake>=1.1 (this version introduced libblake_init())
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'keccak_512.c')
-rw-r--r--keccak_512.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/keccak_512.c b/keccak_512.c
index a617a52..fae3585 100644
--- a/keccak_512.c
+++ b/keccak_512.c
@@ -8,6 +8,24 @@ static struct testcase testcases[] = {
{1, 0, "",
"0eab42de4c3ceb9235fc91acffe746b29c29a8c366b7c60e4e67c466f36a4304"
"c00fa9caf9d87976ba469bcbe06713b435f091ef2769fb160cdab33d3670680e"},
+ {0, 1, "\xff",
+ "23309d222712996f6caacd52656a11467fc96d8b2666803b2f5ab9019be1f3b1"
+ "2044f09cdb3c38050ecab7d0f285a6f31ab1f559e645182ffc506289792e9ef9"},
+ {0, 1, "\x7f",
+ "23309d222712996f6caacd52656a11467fc96d8b2666803b2f5ab9019be1f3b1"
+ "2044f09cdb3c38050ecab7d0f285a6f31ab1f559e645182ffc506289792e9ef9"},
+ {0, 1, "\x01",
+ "23309d222712996f6caacd52656a11467fc96d8b2666803b2f5ab9019be1f3b1"
+ "2044f09cdb3c38050ecab7d0f285a6f31ab1f559e645182ffc506289792e9ef9"},
+ {0, 1, "\xfe",
+ "7d9025bb145a0814083e934baa80ede67322651de52062bf9eb93623c37efc74"
+ "c62240cf8539107f9210c1e1126f79cbaeda6b82b4a8ce6821589c403fa76b9a"},
+ {0, 1, "\x7e",
+ "7d9025bb145a0814083e934baa80ede67322651de52062bf9eb93623c37efc74"
+ "c62240cf8539107f9210c1e1126f79cbaeda6b82b4a8ce6821589c403fa76b9a"},
+ {0, 1, "\x00",
+ "7d9025bb145a0814083e934baa80ede67322651de52062bf9eb93623c37efc74"
+ "c62240cf8539107f9210c1e1126f79cbaeda6b82b4a8ce6821589c403fa76b9a"}
};