diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-25 23:01:32 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-25 23:26:35 +0200 |
commit | a91f2d36b5819c4f76d513ffbc5e3344b796b5f4 (patch) | |
tree | 2ee1a93cbf73a915570f5d5c703c53a6e4e315ca /src/crypto/zinc/selftest/poly1305.h | |
parent | poly1305-arm: swap endianness in base 2^26 conversion (diff) | |
download | wireguard-monolithic-historical-a91f2d36b5819c4f76d513ffbc5e3344b796b5f4.tar.xz wireguard-monolithic-historical-a91f2d36b5819c4f76d513ffbc5e3344b796b5f4.zip |
crypto: rename DEBUG to SELFTEST
Also we make selftest errors of type err, so that they're obvious in
dmesg.
Diffstat (limited to 'src/crypto/zinc/selftest/poly1305.h')
-rw-r--r-- | src/crypto/zinc/selftest/poly1305.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/crypto/zinc/selftest/poly1305.h b/src/crypto/zinc/selftest/poly1305.h index e806ab2..9c12feb 100644 --- a/src/crypto/zinc/selftest/poly1305.h +++ b/src/crypto/zinc/selftest/poly1305.h @@ -3,7 +3,7 @@ * Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ -#ifdef DEBUG +#ifdef CONFIG_ZINC_SELFTEST struct poly1305_testvec { const u8 *input, *output, *key; size_t ilen; @@ -1057,7 +1057,7 @@ static bool __init poly1305_selftest(void) poly1305_final(&poly1305, out, &simd_context); if (memcmp(out, poly1305_testvecs[i].output, POLY1305_MAC_SIZE)) { - pr_info("poly1305 self-test %zu: FAIL\n", i + 1); + pr_err("poly1305 self-test %zu: FAIL\n", i + 1); success = false; } simd_relax(&simd_context); @@ -1078,8 +1078,8 @@ static bool __init poly1305_selftest(void) poly1305_final(&poly1305, out, &simd_context); if (memcmp(out, poly1305_testvecs[i].output, POLY1305_MAC_SIZE)) { - pr_info("poly1305 self-test %zu (split %zu): FAIL\n", - i + 1, j); + pr_err("poly1305 self-test %zu (split %zu): FAIL\n", + i + 1, j); success = false; } @@ -1095,8 +1095,8 @@ static bool __init poly1305_selftest(void) poly1305_final(&poly1305, out, &simd_context); if (memcmp(out, poly1305_testvecs[i].output, POLY1305_MAC_SIZE)) { - pr_info("poly1305 self-test %zu (split %zu, mixed simd): FAIL\n", - i + 1, j); + pr_err("poly1305 self-test %zu (split %zu, mixed simd): FAIL\n", + i + 1, j); success = false; } simd_relax(&simd_context); |