]> 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)
commitd0534e6867ab2820f8176d55c68faddf17a4d637
tree542274bc437739c27a00a7f4b76bee7402826304
parent42ab1bc8db1ef10b94482779bfe9873e10f014cf
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