From ce2ecc59668170abb9bda863c93d896e00cc715f Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 25 Aug 2017 16:21:20 +0200 Subject: [PATCH] One more compiler assertion --- .../xchacha20poly1305/secretstream_xchacha20poly1305.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libsodium/crypto_secretstream/xchacha20poly1305/secretstream_xchacha20poly1305.c b/src/libsodium/crypto_secretstream/xchacha20poly1305/secretstream_xchacha20poly1305.c index 710836a5..1207b5d8 100644 --- a/src/libsodium/crypto_secretstream/xchacha20poly1305/secretstream_xchacha20poly1305.c +++ b/src/libsodium/crypto_secretstream/xchacha20poly1305/secretstream_xchacha20poly1305.c @@ -1,4 +1,3 @@ - #include #include #include @@ -36,6 +35,8 @@ crypto_secretstream_xchacha20poly1305_init_push COMPILER_ASSERT(crypto_secretstream_xchacha20poly1305_INITBYTES == crypto_core_hchacha20_INPUTBYTES + crypto_secretstream_xchacha20poly1305_INONCEBYTES); + COMPILER_ASSERT(crypto_secretstream_xchacha20poly1305_INITBYTES == + crypto_aead_xchacha20poly1305_ietf_NPUBBYTES); COMPILER_ASSERT(sizeof state->nonce == crypto_secretstream_xchacha20poly1305_INONCEBYTES + crypto_secretstream_xchacha20poly1305_COUNTERBYTES);