1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-20 02:25:14 -07:00
This commit is contained in:
Frank Denis 2020-08-16 13:59:23 +02:00
parent ee6f457225
commit ae330742cb

View File

@ -35,7 +35,7 @@ crypto_stream_xchacha20(unsigned char *c, unsigned long long clen,
COMPILER_ASSERT(crypto_stream_chacha20_KEYBYTES <= sizeof k2); COMPILER_ASSERT(crypto_stream_chacha20_KEYBYTES <= sizeof k2);
COMPILER_ASSERT(crypto_stream_chacha20_NONCEBYTES == COMPILER_ASSERT(crypto_stream_chacha20_NONCEBYTES ==
crypto_stream_xchacha20_NONCEBYTES - crypto_stream_xchacha20_NONCEBYTES -
crypto_core_hchacha20_INPUTBYTES); crypto_core_hchacha20_INPUTBYTES);
return crypto_stream_chacha20(c, clen, n + crypto_core_hchacha20_INPUTBYTES, return crypto_stream_chacha20(c, clen, n + crypto_core_hchacha20_INPUTBYTES,
k2); k2);