diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-21 22:48:22 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-22 04:09:39 +0200 |
commit | fd8dfd33f0376b7b4f638d141e6d1643bd5b14c2 (patch) | |
tree | 0c4d78c5a5d6522c15d705908673a40217114142 /src/main.c | |
parent | receive: don't toggle bh (diff) | |
download | wireguard-monolithic-historical-fd8dfd33f0376b7b4f638d141e6d1643bd5b14c2.tar.xz wireguard-monolithic-historical-fd8dfd33f0376b7b4f638d141e6d1643bd5b14c2.zip |
main: test poly1305 before chacha20poly1305
Since chacha20poly1305 relies on the correctness of poly1305, it's
useful to have a failing poly1305 test first, to better pinpoint what's
happening.
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ static int __init mod_init(void) blake2s_fpu_init(); curve25519_fpu_init(); #ifdef DEBUG - if (!allowedips_selftest() || !packet_counter_selftest() || !curve25519_selftest() || !chacha20poly1305_selftest() || !poly1305_selftest() || !blake2s_selftest() || !ratelimiter_selftest()) + if (!allowedips_selftest() || !packet_counter_selftest() || !curve25519_selftest() || !poly1305_selftest() || !chacha20poly1305_selftest() || !blake2s_selftest() || !ratelimiter_selftest()) return -ENOTRECOVERABLE; #endif noise_init(); |