From eb943e0f73d43eb726671e522acf3a8f656b1947 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 23 Aug 2024 22:03:54 +0200 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- ripemd-128.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ripemd-128.c (limited to 'ripemd-128.c') diff --git a/ripemd-128.c b/ripemd-128.c new file mode 100644 index 0000000..8e15e07 --- /dev/null +++ b/ripemd-128.c @@ -0,0 +1,23 @@ +/* See LICENSE file for copyright and license details. */ +#define TEST +#include "common.h" + + +static struct testcase testcases[] = { + {1, 0, "", "cdf26213a150dc3ecb610f18f6b38b46"}, + {1, 0, "a", "86be7afa339d0fc7cfc785e72f578d33"}, + {1, 0, "abc", "c14a12199c66e4ba84636b0f69144c77"}, + {1, 0, "message digest", "9e327b3d6e523062afc1132d7df9d1b8"}, + {1, 0, "abcdefghijklmnopqrstuvwxyz", "fd2aa607f71dc8f510714922b371834e"}, + {1, 0, "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", "a1aa0689d0fafa2ddc22e88b49133a06"}, + {1, 0, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", "d1e959eb179c911faea4624c60c5c702"}, + {8, 0, "1234567890", "3f45ef194732c2dbb2c4a2c769795fa3"}, + {1000000UL, 0, "a", "4a7f5723f954eba1216c9d8f6320431f"} +}; + + +int +main(void) +{ + TEST_MAIN("RIPEMD-128", RIPEMD_128); +} -- cgit v1.2.3-70-g09d2