summaryrefslogtreecommitdiff
path: root/src/libstdcrypto/blake2s_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstdcrypto/blake2s_init.c')
-rw-r--r--src/libstdcrypto/blake2s_init.c9
1 files changed, 9 insertions, 0 deletions
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 <skalibs/blake2s.h>
+
+void blake2s_init (blake2s_ctx *ctx, size_t outlen)
+{
+ blake2s_ctx c = BLAKE2S_INIT(outlen) ;
+ *ctx = c ;
+}