From f41bfa9b94d25af11f2ebb504c00c10b4f940fbb Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 13 Sep 2014 15:17:19 -0700 Subject: [PATCH] More tests for constants --- test/default/stream2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/default/stream2.c b/test/default/stream2.c index d36bcfbf..64ce7b89 100644 --- a/test/default/stream2.c +++ b/test/default/stream2.c @@ -23,5 +23,9 @@ int main(void) crypto_stream_salsa20(output,4194304,noncesuffix,secondkey); crypto_hash_sha256(h,output,sizeof output); for (i = 0;i < 32;++i) printf("%02x",h[i]); printf("\n"); + + assert(crypto_stream_salsa20_keybytes() > 0U); + assert(crypto_stream_salsa20_noncebytes() > 0U); + return 0; }