aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/zinc/chacha20/chacha20.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-25 23:01:32 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-25 23:26:35 +0200
commita91f2d36b5819c4f76d513ffbc5e3344b796b5f4 (patch)
tree2ee1a93cbf73a915570f5d5c703c53a6e4e315ca /src/crypto/zinc/chacha20/chacha20.c
parentpoly1305-arm: swap endianness in base 2^26 conversion (diff)
downloadwireguard-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 '')
-rw-r--r--src/crypto/zinc/chacha20/chacha20.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/zinc/chacha20/chacha20.c b/src/crypto/zinc/chacha20/chacha20.c
index dc9770b..2f576d6 100644
--- a/src/crypto/zinc/chacha20/chacha20.c
+++ b/src/crypto/zinc/chacha20/chacha20.c
@@ -170,7 +170,7 @@ static int __init mod_init(void)
{
if (!nosimd)
chacha20_fpu_init();
-#ifdef DEBUG
+#ifdef CONFIG_ZINC_SELFTEST
if (!chacha20_selftest())
return -ENOTRECOVERABLE;
#endif