OSDN Git Service

wireguard: selftests: ensure non-addition of peers with failed precomputation
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 4 Feb 2020 21:17:27 +0000 (22:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Feb 2020 13:14:18 +0000 (14:14 +0100)
commitf9398acba6a4ae9cb98bfe4d56414d376eff8d57
tree90037aeaa50e690664162a9e2abc2281b3c2d8ec
parentec31c2676a10e064878927b243fada8c2fb0c03c
wireguard: selftests: ensure non-addition of peers with failed precomputation

Ensure that peers with low order points are ignored, both in the case
where we already have a device private key and in the case where we do
not. This adds points that naturally give a zero output.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/wireguard/netns.sh