]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff918935cd20581ec3f773504527424cb2f26116
tree90037aeaa50e690664162a9e2abc2281b3c2d8ec
parent745d2e13f9319745fae1b2767956a3f2582df6cd
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