]> 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)
commit49c3ba4411e971827de09c7850bca0cdb2eec711
tree90037aeaa50e690664162a9e2abc2281b3c2d8ec
parentfd768abb582ac04791db3be564d7e129c1c8fdc5
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