1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00

Welcome, Blake2

This commit is contained in:
Frank Denis 2013-04-20 00:29:17 +02:00
parent d43309490a
commit 0426aa28da
2 changed files with 3 additions and 2 deletions

View File

@ -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);

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>