aboutsummaryrefslogtreecommitdiffstats
path: root/sha1.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-23 23:40:36 +0200
committerMattias Andrée <maandree@kth.se>2024-08-23 23:40:36 +0200
commit4dc7dcef3136b49ff6cb34f28508965433863be8 (patch)
tree2909c34a9351f3567bccec4741ecd53b98327d31 /sha1.c
parentFixes + add SHA0 and SHA1 using libsha1 (diff)
downloadlibhashsum-4dc7dcef3136b49ff6cb34f28508965433863be8.tar.gz
libhashsum-4dc7dcef3136b49ff6cb34f28508965433863be8.tar.bz2
libhashsum-4dc7dcef3136b49ff6cb34f28508965433863be8.tar.xz
Fixes + add SHA2 support via libsha2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'sha1.c')
-rw-r--r--sha1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sha1.c b/sha1.c
index 3ab0776..ebba4ca 100644
--- a/sha1.c
+++ b/sha1.c
@@ -4,6 +4,7 @@
static struct testcase testcases[] = {
+ {1, 0, "", "da39a3ee5e6b4b0d3255bfef95601890afd80709"},
{1, 0, "\xff", "85e53271e14006f0265921d02d4d736cdc580b0b"},
{1, 0, "\xe5\xe0\x99\x24", "d1dffbc8a175dd8eebe0da87b1792b6dc1018e82"},
{56UL, 8, "\0", "9438e360f578e12c0e0e8ed28e2c125c1cefee16"},