From: Eric Biggers Date: Wed, 4 Mar 2020 22:44:04 +0000 (-0800) Subject: crypto: testmgr - do comparison tests before inauthentic input tests X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8ff357a9d146b94d0a165449cad59adbe36f8b50;p=linux.git crypto: testmgr - do comparison tests before inauthentic input tests Do test_aead_vs_generic_impl() before test_aead_inauthentic_inputs() so that any differences with the generic driver are detected before getting to the inauthentic input tests, which intentionally use only the driver being tested (so that they run even if a generic driver is unavailable). Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu --- diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 0a10dbde27efa..428a5f8bc80f4 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2512,11 +2512,11 @@ static int test_aead_extra(const char *driver, goto out; } - err = test_aead_inauthentic_inputs(ctx); + err = test_aead_vs_generic_impl(ctx); if (err) goto out; - err = test_aead_vs_generic_impl(ctx); + err = test_aead_inauthentic_inputs(ctx); out: kfree(ctx->vec.key); kfree(ctx->vec.iv);