summaryrefslogtreecommitdiffstats
path: root/src/blake2/b2sum.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:11:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:11:47 +0000
commit758f820bcc0f68aeebac1717e537ca13a320b909 (patch)
tree48111ece75cf4f98316848b37a7e26356e00669e /src/blake2/b2sum.h
parentInitial commit. (diff)
downloadcoreutils-758f820bcc0f68aeebac1717e537ca13a320b909.tar.xz
coreutils-758f820bcc0f68aeebac1717e537ca13a320b909.zip
Adding upstream version 9.1.upstream/9.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/blake2/b2sum.h')
-rw-r--r--src/blake2/b2sum.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/blake2/b2sum.h b/src/blake2/b2sum.h
new file mode 100644
index 0000000..6517b25
--- /dev/null
+++ b/src/blake2/b2sum.h
@@ -0,0 +1,20 @@
+/*
+ BLAKE2 reference source code package - b2sum tool
+
+ Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
+ terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
+ your option. The terms of these licenses can be found at:
+
+ - CC0 1.0 Universal : https://creativecommons.org/publicdomain/zero/1.0
+ - OpenSSL license : https://www.openssl.org/source/license.html
+ - Apache 2.0 : https://www.apache.org/licenses/LICENSE-2.0
+
+ More information about the BLAKE2 hash function can be found at
+ https://blake2.net.
+*/
+
+int blake2b_stream (FILE *stream, void *resstream, size_t outbytes)
+ _GL_ATTRIBUTE_NONNULL ((1));
+typedef int ( *blake2fn )( FILE *, void *, size_t );
+#define BLAKE2S_OUTBYTES 32
+#define BLAKE2B_OUTBYTES 64