diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-06-25 01:28:18 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-06-25 16:48:39 +0200 |
commit | 3e8c04a03f4070e23fc737f30c25a79d5958d734 (patch) | |
tree | 23354ba5aec33b7068421524c3e514767a1e42fb /src/crypto/siphash24.c | |
parent | nonce: switch to RFC6479 to better support packet reordering (diff) | |
download | wireguard-monolithic-historical-3e8c04a03f4070e23fc737f30c25a79d5958d734.tar.xz wireguard-monolithic-historical-3e8c04a03f4070e23fc737f30c25a79d5958d734.zip |
tests: make fatal
Diffstat (limited to '')
-rw-r--r-- | src/crypto/siphash24.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/siphash24.c b/src/crypto/siphash24.c index 093c837..5a29a80 100644 --- a/src/crypto/siphash24.c +++ b/src/crypto/siphash24.c @@ -131,7 +131,7 @@ static const uint8_t test_vectors[64][8] = { { 0x72, 0x45, 0x06, 0xeb, 0x4c, 0x32, 0x8a, 0x95 } }; -void siphash24_selftest(void) +bool siphash24_selftest(void) { uint8_t in[64], k[16]; uint64_t out; @@ -151,5 +151,6 @@ void siphash24_selftest(void) } if (success) pr_info("siphash24 self-tests: pass\n"); + return success; } #endif |