crypto: curve25519 - do not pollute dispatcher based on assembler
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 26 Mar 2020 08:01:01 +0000 (17:01 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 8 Apr 2020 15:01:59 +0000 (00:01 +0900)
commit3f523e12404c4312ed6366653e34b5a7892a71f6
tree542274bc437739c27a00a7f4b76bee7402826304
parent4dcbfc35f7da66609cf56690586a72ca0ad279f8
crypto: curve25519 - do not pollute dispatcher based on assembler

Since we're doing a static inline dispatch here, we normally branch
based on whether or not there's an arch implementation. That would have
been fine in general, except the crypto Makefile prior used to turn
things off -- despite the Kconfig -- resulting in us needing to also
hard code various assembler things into the dispatcher too. The horror!
Now that the assembler config options are done by Kconfig, we can get
rid of the inconsistency.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
include/crypto/curve25519.h