aboutsummaryrefslogtreecommitdiffstats
path: root/md4.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 /md4.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--md4.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/md4.c b/md4.c
index 065ca26..650c50c 100644
--- a/md4.c
+++ b/md4.c
@@ -15,7 +15,13 @@ static struct testcase testcases[] = {
{1, 0, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", "043f8582f241db351ce627e153e7f0e4"},
{1, 0, "12345678901234567890123456789012345678901234567890123456789012345678901234567890", "e33b4ddc9c38f2199c3e7b164fcc0536"},
{1, 0, "1234567890123456789012345678901234567890123456789012345678901234", "c30a2de7d6eb547b4ceb82d65e28c029"},
- {1000000UL, 0, "a", NULL}
+ {1000000UL, 0, "a", NULL},
+ {0, 1, "\xff", "15f8f7419944ac564526a3c65da2c5f3"},
+ {0, 1, "\x7f", "15f8f7419944ac564526a3c65da2c5f3"},
+ {0, 1, "\x01", "15f8f7419944ac564526a3c65da2c5f3"},
+ {0, 1, "\xfe", "8d62ecbf6ffbc49dec08bb4c537189bb"},
+ {0, 1, "\x7e", "8d62ecbf6ffbc49dec08bb4c537189bb"},
+ {0, 1, "\x00", "8d62ecbf6ffbc49dec08bb4c537189bb"}
};