]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wireguard: kconfig: simplify crypto kconfig selections
authorEric Biggers <ebiggers@kernel.org>
Sat, 6 Sep 2025 21:35:23 +0000 (14:35 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 8 Sep 2025 16:44:08 +0000 (09:44 -0700)
commit54e7bb6ade8acd3fb1c486c9f3e2c0dfdc18f84e
tree64082cc867fe53a939ddc9d38ef91533105f2b78
parentcb2d6b132a44a140aed3562ef932754d39ddccf3
wireguard: kconfig: simplify crypto kconfig selections

Simplify the kconfig entry for WIREGUARD:

- Drop the selections of the arch-optimized ChaCha20, Poly1305, BLAKE2s,
  and Curve25519 code.  These options no longer exist, as lib/crypto/
  now enables the arch-optimized code automatically.

- Drop the selection of CRYPTO.  This was needed only to make the
  arch-optimized options visible.  lib/crypto/ now handles these options
  internally, without any dependency on CRYPTO.

- Drop the dependency on !KMSAN.  This was needed only to avoid
  selecting arch-optimized code that isn't compatible with KMSAN.
  lib/crypto/ now handles the !KMSAN dependencies internally.

- Add a selection of CRYPTO_LIB_UTILS, since WireGuard directly calls
  crypto_memneq().  This gets selected indirectly by
  CRYPTO_LIB_CURVE25519 and CRYPTO_LIB_CHACHA20POLY1305 anyway, but it's
  best to make this dependency explicit.

Link: https://lore.kernel.org/r/20250906213523.84915-13-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
drivers/net/Kconfig