]> git.codecow.com Git - Monocypher.git/commitdiff
Fixed X25519 speed test
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 1 Dec 2019 19:35:10 +0000 (20:35 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sun, 1 Dec 2019 19:35:10 +0000 (20:35 +0100)
tests/speed/speed.c

index 941ed535d4a27331e8122093814bcd98f7ef94bb..ecf28a70ee3c4644fa630ac71428d360879712cf 100644 (file)
@@ -86,9 +86,7 @@ static u64 x25519(void)
     u8 out[32] = {9};
 
     TIMING_START {
-        if (crypto_x25519(out, out, in)) {
-            printf("Monocypher x25519 rejected public key\n");
-        }
+        crypto_x25519(out, out, in);
     }
     TIMING_END;
 }