1 /* 2 BLAKE2 reference source code package - b2sum tool 3 4 Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the 5 terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at 6 your option. The terms of these licenses can be found at: 7 8 - CC0 1.0 Universal : https://creativecommons.org/publicdomain/zero/1.0 9 - OpenSSL license : https://www.openssl.org/source/license.html 10 - Apache 2.0 : https://www.apache.org/licenses/LICENSE-2.0 11 12 More information about the BLAKE2 hash function can be found at 13 https://blake2.net. 14 */ 15 16 int blake2b_stream (FILE *stream, void *resstream, size_t outbytes) 17 _GL_ATTRIBUTE_NONNULL ((1)); 18 typedef int ( *blake2fn )( FILE *, void *, size_t ); 19 #define BLAKE2S_OUTBYTES 32 20 #define BLAKE2B_OUTBYTES 64 21