From 72111e7a53eaad7bea841ab8b09e70642bde00ae Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 24 Aug 2024 18:02:00 +0200 Subject: Add support for Keccak, SHA3, SHAKE, and RawSHAKE via libkeccak>=1.3 (this version introduced zerocopy) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- keccak_384.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 keccak_384.c (limited to 'keccak_384.c') diff --git a/keccak_384.c b/keccak_384.c new file mode 100644 index 0000000..3884526 --- /dev/null +++ b/keccak_384.c @@ -0,0 +1,22 @@ +/* See LICENSE file for copyright and license details. */ +#ifdef SUPPORT_KECCAK +# define TEST +# include "common.h" + + +static struct testcase testcases[] = { + {1, 0, "", "2c23146a63a29acf99e73b88f8c24eaa7dc60aa771780ccc006afbfa8fe2479b2dd2b21362337441ac12b515911957ff"}, +}; + + +#else +# define TEST_UNSUPPORTED +# include "common.h" +#endif + + +int +main(void) +{ + TEST_MAIN("Keccak-384", KECCAK_384); +} -- cgit v1.2.3-70-g09d2