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 | 0b6b96af63ae3ebd2159725e9015a83b075a62c4 (patch) | |
tree | d0e3d348202fd0d00d6d88ec2233fd50eeccbf79 /src/main.c | |
parent | 026b865cfd1e65e627037a0699db456dad1b9046 (diff) |
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.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/main.c')
-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(); |