1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 12:36:01 -07:00

More tests for constants

This commit is contained in:
Frank Denis 2014-09-13 15:17:19 -07:00
parent fcc2513967
commit f41bfa9b94

View File

@ -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;
}