]> 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)
commitb44c90018d601c8d2aac20422bae3da3a08625f3
tree1b5a0592b1e8db804610d7e5c715a9cf4176209f
parent6960f29d4268b622ebc9a3177aecd107f7ae00b5
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