mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-20 10:37:24 -07:00
Bump generichash minimum key and output size to 128 bits.
People who know what they are doing and who need a truncated output or a shorter key can still do it. But we should keep the chance for users to shoot themselves in the foot down to a minimum.
This commit is contained in:
parent
9578af69d2
commit
4d147466bc
@ -6,9 +6,9 @@
|
||||
|
||||
#include "export.h"
|
||||
|
||||
#define crypto_generichash_blake2b_BYTES_MIN 1U
|
||||
#define crypto_generichash_blake2b_BYTES_MIN 16U
|
||||
#define crypto_generichash_blake2b_BYTES_MAX 64U
|
||||
#define crypto_generichash_blake2b_KEYBYTES_MIN 0U
|
||||
#define crypto_generichash_blake2b_KEYBYTES_MIN 16U
|
||||
#define crypto_generichash_blake2b_KEYBYTES_MAX 64U
|
||||
#define crypto_generichash_blake2b_BLOCKBYTES 128U
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user