1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00
This commit is contained in:
Frank Denis 2019-09-13 00:17:46 +02:00
parent f537541a0a
commit 1d536ffab7

View File

@ -184,8 +184,8 @@ crypto_aead_aegis256_encrypt(unsigned char *c, unsigned long long *clen_p, const
if (mlen > crypto_aead_aegis256_MESSAGEBYTES_MAX) { if (mlen > crypto_aead_aegis256_MESSAGEBYTES_MAX) {
sodium_misuse(); sodium_misuse();
} }
ret = ret = crypto_aead_aegis256_encrypt_detached(c, c + mlen, NULL, m, mlen,
crypto_aead_aegis256_encrypt_detached(c, c + mlen, NULL, m, mlen, ad, adlen, nsec, npub, k); ad, adlen, nsec, npub, k);
if (clen_p != NULL) { if (clen_p != NULL) {
if (ret == 0) { if (ret == 0) {
clen = mlen + 16ULL; clen = mlen + 16ULL;