One more compiler assertion

This commit is contained in:
Frank Denis
2017-08-25 16:21:20 +02:00
parent e84336ac48
commit ce2ecc5966
@@ -1,4 +1,3 @@
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
@@ -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);