summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/zinc/curve25519/curve25519.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
commit38c18b1364f7afa358b1a96464c0a4d6f737c78f (patch)
tree4048844deb9625c25f874e56ad336e9d0642d0df /src/crypto/zinc/curve25519/curve25519.c
parentb161ec0f59cb93132fe6289f2b19a2fb7f893595 (diff)
crypto: rename DEBUG to SELFTEST
Also we make selftest errors of type err, so that they're obvious in dmesg. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/zinc/curve25519/curve25519.c')
-rw-r--r--src/crypto/zinc/curve25519/curve25519.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/zinc/curve25519/curve25519.c b/src/crypto/zinc/curve25519/curve25519.c
index a1f35aa..6b1b18e 100644
--- a/src/crypto/zinc/curve25519/curve25519.c
+++ b/src/crypto/zinc/curve25519/curve25519.c
@@ -98,7 +98,7 @@ static int __init mod_init(void)
{
if (!nosimd)
curve25519_fpu_init();
-#ifdef DEBUG
+#ifdef CONFIG_ZINC_SELFTEST
if (!curve25519_selftest())
return -ENOTRECOVERABLE;
#endif