aboutsummaryrefslogtreecommitdiffstats
path: root/sha0.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 /sha0.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 '')
-rw-r--r--sha0.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sha0.c b/sha0.c
index 3627f61..ae530e0 100644
--- a/sha0.c
+++ b/sha0.c
@@ -5,7 +5,13 @@
static struct testcase testcases[] = {
- {1, 0, "abc", "0164b8a914cd2a5e74c4f7ff082c4d97f1edf880"}
+ {1, 0, "abc", "0164b8a914cd2a5e74c4f7ff082c4d97f1edf880"},
+ {0, 1, "\xff", "72eb6615d834148bbf63d5ddfe172a36a072a724"},
+ {0, 1, "\x7f", "72eb6615d834148bbf63d5ddfe172a36a072a724"},
+ {0, 1, "\x01", "72eb6615d834148bbf63d5ddfe172a36a072a724"},
+ {0, 1, "\xfe", "b8b0ca781d45a96d2e71f798e7e26b5c2bc8b5c8"},
+ {0, 1, "\x7e", "b8b0ca781d45a96d2e71f798e7e26b5c2bc8b5c8"},
+ {0, 1, "\x00", "b8b0ca781d45a96d2e71f798e7e26b5c2bc8b5c8"}
};