]> git.codecow.com Git - Monocypher.git/commitdiff
Fix speed benchmark bug
authorLoup Vaillant <loup@loup-vaillant.fr>
Fri, 5 Jan 2024 15:41:01 +0000 (16:41 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Fri, 5 Jan 2024 15:41:27 +0000 (16:41 +0100)
tests/speed/speed.c

index 1a7e9dddedea82f7d463c2a53282df2ac4445e91..90b5409c5d2b0409fe71eb2c571fce355cfcde13 100644 (file)
@@ -88,7 +88,7 @@ static u64 authenticated(void)
        RANDOM_INPUT(nonce,   24);
 
        TIMING_START {
-               crypto_aead_lock(mac, out, key, nonce, 0, 0, in, SIZE);
+               crypto_aead_lock(out, mac, key, nonce, 0, 0, in, SIZE);
        }
        TIMING_END;
 }