]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aegis128 - expose SIMD code path as separate driver
authorArd Biesheuvel <ardb@kernel.org>
Tue, 17 Nov 2020 13:32:14 +0000 (14:32 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Nov 2020 06:13:40 +0000 (17:13 +1100)
commit91e376d94316dd46c5c0a7c5582376c221fbaf41
treea7aa512520ee918e1a2ee6033bdbe9374b0c5ca9
parenta2533e44e96c67ff7378255e0f333b85de967710
crypto: aegis128 - expose SIMD code path as separate driver

Wiring the SIMD code into the generic driver has the unfortunate side
effect that the tcrypt testing code cannot distinguish them, and will
therefore not use the latter to fuzz test the former, as it does for
other algorithms.

So let's refactor the code a bit so we can register two implementations:
aegis128-generic and aegis128-simd.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Ondrej Mosnacek <omosnacek@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/aegis128-core.c