From 3316db5c87a5bf6b8420fb248fec3e5ccf5f7330 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 17 Feb 2015 18:42:57 +0100 Subject: [PATCH] Use proper nonce length now that's it's a pointer in box_easy2 test. --- test/default/box_easy2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/default/box_easy2.c b/test/default/box_easy2.c index f4f1ff53..d1b6ab40 100644 --- a/test/default/box_easy2.c +++ b/test/default/box_easy2.c @@ -31,7 +31,7 @@ int main(void) crypto_box_keypair(bobpk, bobsk); mlen = (size_t) randombytes_uniform((uint32_t)sizeof m); randombytes_buf(m, mlen); - randombytes_buf(nonce, sizeof nonce); + randombytes_buf(nonce, crypto_box_NONCEBYTES); crypto_box_easy(c, m, mlen, nonce, bobpk, alicesk); if (crypto_box_open_easy(m2, c, (unsigned long long) mlen + crypto_box_MACBYTES,