]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c5f9a012622e23c13bb225365c062f5cb0c68c3
treeed00b371ecf10e87a751ba662b46788963f47cd1
parenta6f6d25187957d3b41a67897010222cef57fde2e
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