Welcome, Blake2

This commit is contained in:
Frank Denis
2013-04-21 17:32:08 -07:00
parent d43309490a
commit 0426aa28da
2 changed files with 3 additions and 2 deletions
@@ -13,8 +13,7 @@ crypto_generichash_blake2b(unsigned char *out, const unsigned char *in,
size_t keylen)
{
if (outlen <= 0U || outlen > BLAKE2B_OUTBYTES ||
keylen > BLAKE2B_KEYBYTES ||
inlen > UINT64_MAX) {
keylen > BLAKE2B_KEYBYTES || inlen > UINT64_MAX) {
return -1;
}
assert(outlen <= UINT8_MAX);
+2
View File
@@ -12,6 +12,8 @@
#include <sodium/crypto_core_salsa20.h>
#include <sodium/crypto_core_salsa2012.h>
#include <sodium/crypto_core_salsa208.h>
#include <sodium/crypto_generichash.h>
#include <sodium/crypto_generichash_blake2b.h>
#include <sodium/crypto_hash.h>
#include <sodium/crypto_hash_sha256.h>
#include <sodium/crypto_hash_sha512.h>