diff options
author | Eric Biggers <ebiggers@google.com> | 2020-03-04 14:44:04 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-03-12 23:00:13 +1100 |
commit | f91b1710f65afa672d53ad87665da07eb36d1b8e (patch) | |
tree | 8bfdcd01895d8c28f786c10730002b1d954e084a /crypto | |
parent | 0a630f8065a97b271be01c0020fa1d5baa5adb99 (diff) | |
download | linux-crypto-f91b1710f65afa672d53ad87665da07eb36d1b8e.tar.gz linux-crypto-f91b1710f65afa672d53ad87665da07eb36d1b8e.zip |
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 <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/testmgr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 0a10dbde..428a5f8b 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); |