]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita27e93bf390d829641de56ee11055ad7ee8dadad
tree542274bc437739c27a00a7f4b76bee7402826304
parent60e7b38a56f2186eadc8fdb9893a2c8f38953dd3
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