mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-26 19:57:13 +09:00
One more COMPILER_ASSERT()
This commit is contained in:
@@ -135,6 +135,8 @@ crypto_secretstream_xchacha20poly1305_push
|
||||
crypto_onetimeauth_poly1305_final(&poly1305_state, mac);
|
||||
sodium_memzero(&poly1305_state, sizeof poly1305_state);
|
||||
|
||||
COMPILER_ASSERT(crypto_onetimeauth_poly1305_BYTES >=
|
||||
crypto_secretstream_xchacha20poly1305_INONCEBYTES);
|
||||
for (i = 0U; i < crypto_secretstream_xchacha20poly1305_INONCEBYTES; i++) {
|
||||
STATE_INONCE(state)[i] ^= mac[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user