aboutsummaryrefslogtreecommitdiffstats
path: root/sha0.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-23 22:36:41 +0200
committerMattias Andrée <maandree@kth.se>2024-08-23 22:40:29 +0200
commit2fd94aae29d53d9859bfc3f53777970def38e253 (patch)
treee45573486f44271d75ee22284953e5dcde303ca5 /sha0.c
parentFirst commit (diff)
downloadlibhashsum-2fd94aae29d53d9859bfc3f53777970def38e253.tar.gz
libhashsum-2fd94aae29d53d9859bfc3f53777970def38e253.tar.bz2
libhashsum-2fd94aae29d53d9859bfc3f53777970def38e253.tar.xz
Fixes + add SHA0 and SHA1 using libsha1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'sha0.c')
-rw-r--r--sha0.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sha0.c b/sha0.c
new file mode 100644
index 0000000..5ce216a
--- /dev/null
+++ b/sha0.c
@@ -0,0 +1,15 @@
+/* See LICENSE file for copyright and license details. */
+#define TEST
+#include "common.h"
+
+
+static struct testcase testcases[] = {
+ {1, 0, "abc", "0164b8a914cd2a5e74c4f7ff082c4d97f1edf880"}
+};
+
+
+int
+main(void)
+{
+ TEST_MAIN("SHA0", SHA0);
+}