mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
C++ compat
This commit is contained in:
parent
eb5ff7270e
commit
fe3e60392c
@ -170,7 +170,7 @@ void
|
|||||||
randombytes_buf_deterministic(void * const buf, const size_t size,
|
randombytes_buf_deterministic(void * const buf, const size_t size,
|
||||||
const unsigned char seed[randombytes_SEEDBYTES])
|
const unsigned char seed[randombytes_SEEDBYTES])
|
||||||
{
|
{
|
||||||
static const unsigned char zero[crypto_stream_chacha20_ietf_NONCEBYTES];
|
static const unsigned char zero[crypto_stream_chacha20_ietf_NONCEBYTES] = { 0 };
|
||||||
|
|
||||||
COMPILER_ASSERT(randombytes_SEEDBYTES == crypto_stream_chacha20_ietf_KEYBYTES);
|
COMPILER_ASSERT(randombytes_SEEDBYTES == crypto_stream_chacha20_ietf_KEYBYTES);
|
||||||
if (size > 0x4000000000ULL) {
|
if (size > 0x4000000000ULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user