Add a test for constants

This commit is contained in:
Frank Denis 2017-11-15 16:58:31 +01:00
parent a60d877327
commit fc10e78580

View File

@ -42,6 +42,9 @@ main(void)
sodium_free(p); sodium_free(p);
sodium_free(n); sodium_free(n);
assert(crypto_scalarmult_ed25519_BYTES == crypto_scalarmult_ed25519_bytes());
assert(crypto_scalarmult_ed25519_SCALARBYTES == crypto_scalarmult_ed25519_scalarbytes());
printf("OK\n"); printf("OK\n");
return 0; return 0;