crypto: simd - support wrapping AEAD algorithms
authorEric Biggers <ebiggers@google.com>
Sun, 10 Mar 2019 19:00:50 +0000 (12:00 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Mar 2019 12:57:26 +0000 (20:57 +0800)
commit1661131a0479a2e0f7d16b43ce12a0106c442e37
treeed00b371ecf10e87a751ba662b46788963f47cd1
parent16c4dd83a1b2a23004e2728b7c6222592e64e354
crypto: simd - support wrapping AEAD algorithms

Update the crypto_simd module to support wrapping AEAD algorithms.
Previously it only supported skciphers.  The code for each is similar.

I'll be converting the x86 implementations of AES-GCM, AEGIS, and MORUS
to use this.  Currently they each independently implement the same
functionality.  This will not only simplify the code, but it will also
fix the bug detected by the improved self-tests: the user-provided
aead_request is modified.  This is because these algorithms currently
reuse the original request, whereas the crypto_simd helpers build a new
request in the original request's context.

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