aboutsummaryrefslogtreecommitdiffstats
path: root/t/blake2s.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-09-04 19:41:56 +0200
committerMattias Andrée <maandree@kth.se>2024-09-04 19:41:56 +0200
commitcda19b080eee1c8057ebcb4369455582949ed20e (patch)
tree39d4ff4a5efaac08207ca33606fa01877b404927 /t/blake2s.c
parenttests: check .supports_non_whole_bytes (diff)
downloadlibhashsum-cda19b080eee1c8057ebcb4369455582949ed20e.tar.gz
libhashsum-cda19b080eee1c8057ebcb4369455582949ed20e.tar.bz2
libhashsum-cda19b080eee1c8057ebcb4369455582949ed20e.tar.xz
Fix and test BLAKE2 support
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--t/blake2s.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/t/blake2s.c b/t/blake2s.c
new file mode 100644
index 0000000..58408df
--- /dev/null
+++ b/t/blake2s.c
@@ -0,0 +1,22 @@
+/* See LICENSE file for copyright and license details. */
+#ifdef SUPPORT_BLAKE2S
+# define TEST
+# include "../common.h"
+
+
+static struct testcase testcases[] = {
+ {1, 0, "", "69217a3079908094e11121d042354a7c1f55b6482ca1a51e1b250dfd1ed0eef9"}
+};
+
+
+#else
+# define TEST_UNSUPPORTED
+# include "../common.h"
+#endif
+
+
+int
+main(void)
+{
+ TEST_MAIN("BLAKE2s", BLAKE2S, 0);
+}