crypto: testmgr - remove workaround for AEADs that modify aead_request
authorEric Biggers <ebiggers@google.com>
Sun, 10 Mar 2019 19:00:58 +0000 (12:00 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Mar 2019 12:57:26 +0000 (20:57 +0800)
Now that all AEAD algorithms (that I have the hardware to test, at
least) have been fixed to not modify the user-provided aead_request,
remove the workaround from testmgr that reset aead_request::tfm after
each AEAD encryption/decryption.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c

index 8386038d67c743dfff698390fccaca33cfb7d086..5d56b299076288d8ba719bf72898805a0d803cd0 100644 (file)
@@ -1237,9 +1237,6 @@ static int test_aead_vec_cfg(const char *driver, int enc,
        aead_request_set_ad(req, vec->alen);
        err = crypto_wait_req(enc ? crypto_aead_encrypt(req) :
                              crypto_aead_decrypt(req), &wait);
-
-       aead_request_set_tfm(req, tfm); /* TODO: get rid of this */
-
        if (err) {
                if (err == -EBADMSG && vec->novrfy)
                        return 0;