Merge branch 'stable' of rho.la:~/libsodium into rho-fork

This commit is contained in:
Cheng 2022-07-21 04:39:57 -07:00
commit bf9f016b58
No known key found for this signature in database
GPG Key ID: D51301E176B31828

View File

@ -121,6 +121,7 @@ crypto_secretbox_open_detached(unsigned char *m, const unsigned char *c,
for (i = 0U; i < mlen0; i++) {
m[i] = block0[i + crypto_secretbox_ZEROBYTES];
}
sodium_memzero(block0, sizeof block0);
if (clen > mlen0) {
crypto_stream_salsa20_xor_ic(m + mlen0, c + mlen0, clen - mlen0,
n + 16, 1U, subkey);