summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-18 18:30:47 -0600
committerMichael Bestas <mkbestas@lineageos.org>2020-12-31 19:40:43 +0200
commit18f7e06a90a26575bd28d6284142078acd7c8311 (patch)
tree4ec21907f6e5dc7a68953182d45171c498a8866f /Kconfig
parent8cf67b67b18609fd2ced2c1de9a67bbfc4ea8c88 (diff)
UPSTREAM: wireguard: noise: error out precomputed DH during handshake rather than config
We precompute the static-static ECDH during configuration time, in order to save an expensive computation later when receiving network packets. However, not all ECDH computations yield a contributory result. Prior, we were just not letting those peers be added to the interface. However, this creates a strange inconsistency, since it was still possible to add other weird points, like a valid public key plus a low-order point, and, like points that result in zeros, a handshake would not complete. In order to make the behavior more uniform and less surprising, simply allow all peers to be added. Then, we'll error out later when doing the crypto if there's an issue. This also adds more separation between the crypto layer and the configuration layer. Discussed-with: Mathias Hall-Andersen <mathias@hall-andersen.dk> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: David S. Miller <davem@davemloft.net> (cherry picked from commit 11a7686aa99c7fe4b3f80f6dcccd54129817984d) Bug: 152722841 Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Iae7e1688340109decefa565b848b97ce444c20b6
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions