From e0c38ba95a293b747acee203ead11933a44a4c59 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 1 Jun 2022 12:40:24 +0000 Subject: Add blake2s implementation to stdcrypto Signed-off-by: Laurent Bercot --- src/libstdcrypto/blake2s_init.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/libstdcrypto/blake2s_init.c (limited to 'src/libstdcrypto/blake2s_init.c') diff --git a/src/libstdcrypto/blake2s_init.c b/src/libstdcrypto/blake2s_init.c new file mode 100644 index 0000000..7460747 --- /dev/null +++ b/src/libstdcrypto/blake2s_init.c @@ -0,0 +1,9 @@ + /* ISC license. */ + +#include + +void blake2s_init (blake2s_ctx *ctx, size_t outlen) +{ + blake2s_ctx c = BLAKE2S_INIT(outlen) ; + *ctx = c ; +} -- cgit v1.3.1