diff options
author | Mattias Andrée <maandree@kth.se> | 2024-09-04 19:41:56 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-09-04 19:41:56 +0200 |
commit | cda19b080eee1c8057ebcb4369455582949ed20e (patch) | |
tree | 39d4ff4a5efaac08207ca33606fa01877b404927 /t/blake2s.c | |
parent | tests: check .supports_non_whole_bytes (diff) | |
download | libhashsum-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.c | 22 |
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); +} |