mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Welcome, Blake2
This commit is contained in:
parent
d43309490a
commit
0426aa28da
@ -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);
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user