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)
commit2698bce1f05f0a13e2df1db7364df2b50a47e08d
tree1b5a0592b1e8db804610d7e5c715a9cf4176209f
parentbe867f987a4e1222114dd07a01838a17c26f3fff
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