From fc10e7858078d86c1d2792749a93de8093acbce9 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 15 Nov 2017 16:58:31 +0100 Subject: [PATCH] Add a test for constants --- test/default/scalarmult_ed25519.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/default/scalarmult_ed25519.c b/test/default/scalarmult_ed25519.c index 07e5e9e0..3ef7f96b 100644 --- a/test/default/scalarmult_ed25519.c +++ b/test/default/scalarmult_ed25519.c @@ -42,6 +42,9 @@ main(void) sodium_free(p); sodium_free(n); + assert(crypto_scalarmult_ed25519_BYTES == crypto_scalarmult_ed25519_bytes()); + assert(crypto_scalarmult_ed25519_SCALARBYTES == crypto_scalarmult_ed25519_scalarbytes()); + printf("OK\n"); return 0;