aboutsummaryrefslogtreecommitdiffstats
path: root/sha1.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 /sha1.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--sha1.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sha1.c b/sha1.c
index eca40ba..d7669df 100644
--- a/sha1.c
+++ b/sha1.c
@@ -27,7 +27,13 @@ static struct testcase testcases[] = {
{0, 4, "\x0d", "ba582f5967911beb91599684c2eb2baeefb78da7"},
{0, 5, "\x09", "3320540d1c28b96ddd03eee1b186a8f2ae883fbe"},
{0, 6, "\x08", "b372bd120957ebc3392cd060e131699d1fee6059"},
- {0, 7, "\x22", "04f31807151181ad0db278a1660526b0aeef64c2"}
+ {0, 7, "\x22", "04f31807151181ad0db278a1660526b0aeef64c2"},
+ {0, 1, "\xff", "59c4526aa2cc59f9a5f56b5579ba7108e7ccb61a"},
+ {0, 1, "\x7f", "59c4526aa2cc59f9a5f56b5579ba7108e7ccb61a"},
+ {0, 1, "\x01", "59c4526aa2cc59f9a5f56b5579ba7108e7ccb61a"},
+ {0, 1, "\xfe", "bb6b3e18f0115b57925241676f5b1ae88747b08a"},
+ {0, 1, "\x7e", "bb6b3e18f0115b57925241676f5b1ae88747b08a"},
+ {0, 1, "\x00", "bb6b3e18f0115b57925241676f5b1ae88747b08a"}
};