]> git.codecow.com Git - Monocypher.git/commitdiff
Fixed TweetNaCl speed tests
authorLoup Vaillant <loup@loup-vaillant.fr>
Mon, 13 May 2019 21:26:26 +0000 (23:26 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Mon, 13 May 2019 21:27:22 +0000 (23:27 +0200)
tests/speed-tweetnacl.c

index 00a1f9e5f7bbcb6dc6e6b8430d86de2e8a496c7c..6d75989bfbf7b7854e51ac2fef475e81349a42c6 100644 (file)
@@ -32,7 +32,7 @@ static u64 authenticated(void)
     u8 out[SIZE + 32];
     RANDOM_INPUT(in   , SIZE + 32);
     RANDOM_INPUT(key  ,        32);
-    RANDOM_INPUT(nonce,         8);
+    RANDOM_INPUT(nonce,        24);
 
     TIMING_START {
         crypto_secretbox(out, in, SIZE + 32, nonce, key);