]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aegis128 - avoid function pointers for parameterization
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 14 Oct 2019 16:16:44 +0000 (18:16 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Oct 2019 15:06:05 +0000 (02:06 +1100)
commit1e4f5d87a4db37a2dbf2edd0a55fc27f6873736e
tree1b5a0592b1e8db804610d7e5c715a9cf4176209f
parentdbe736adf7778c1b7ea7f783bb1da81553b1d5a0
crypto: aegis128 - avoid function pointers for parameterization

Instead of passing around an ops structure with function pointers,
which forces indirect calls to be used, refactor the code slightly
so we can use ordinary function calls. At the same time, switch to
a static key to decide whether or not the SIMD code path may be used.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/aegis128-core.c