From 97e9a61fd5631985232923cff83b2ddc0ca476c0 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 5 Oct 2018 03:13:30 +0200 Subject: crypto: test all SIMD combinations --- src/crypto/zinc/chacha20poly1305.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/crypto/zinc/chacha20poly1305.c') diff --git a/src/crypto/zinc/chacha20poly1305.c b/src/crypto/zinc/chacha20poly1305.c index 6c8ff3a..6f709e0 100644 --- a/src/crypto/zinc/chacha20poly1305.c +++ b/src/crypto/zinc/chacha20poly1305.c @@ -10,6 +10,8 @@ #include #include #include +#include "selftest/run.h" + #include #include #include @@ -347,10 +349,9 @@ int __init chacha20poly1305_mod_init(void) static int __init mod_init(void) #endif { -#ifdef CONFIG_ZINC_SELFTEST - if (WARN_ON(!chacha20poly1305_selftest())) + if (!selftest_run("chacha20poly1305", chacha20poly1305_selftest, + NULL, 0)) return -ENOTRECOVERABLE; -#endif return 0; } -- cgit v1.2.3-59-g8ed1b