aboutsummaryrefslogtreecommitdiffstats
path: root/ripemd-160.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 /ripemd-160.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 'ripemd-160.c')
-rw-r--r--ripemd-160.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ripemd-160.c b/ripemd-160.c
index 9f3f4dd..d1a1ece 100644
--- a/ripemd-160.c
+++ b/ripemd-160.c
@@ -13,7 +13,13 @@ static struct testcase testcases[] = {
{1, 0, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", "12a053384a9c0c88e405a06c27dcf49ada62eb2b"},
{1, 0, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", "b0e20b6e3116640286ed3a87a5713079b21f5189"},
{8, 0, "1234567890", "9b752e45573d4b39f4dbd3323cab82bf63326bfb"},
- {1000000UL, 0, "a", "52783243c1697bdbe16d37f97f68f08325dc1528"}
+ {1000000UL, 0, "a", "52783243c1697bdbe16d37f97f68f08325dc1528"},
+ {0, 1, "\xff", "4cd9629a69fdd5fa1520047fa19b4b10480041c2"},
+ {0, 1, "\x7f", "4cd9629a69fdd5fa1520047fa19b4b10480041c2"},
+ {0, 1, "\x01", "4cd9629a69fdd5fa1520047fa19b4b10480041c2"},
+ {0, 1, "\xfe", "63d03656713e6e8ea7b6be680328f9501f59f35e"},
+ {0, 1, "\x7e", "63d03656713e6e8ea7b6be680328f9501f59f35e"},
+ {0, 1, "\x00", "63d03656713e6e8ea7b6be680328f9501f59f35e"}
};