]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
wg: use key_is_zero for comparing to zeros
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 22 Sep 2017 02:04:00 +0000 (04:04 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 24 Sep 2017 21:10:15 +0000 (23:10 +0200)
commit9ef84af8c0bc31d1e56d0a66a9ed909c1edfdd5d
tree3dd4bd5755c51637e5852cd7f5addce5fd1f94dc
parent6c7d67acfe953849622a64771fa5008730517a75
wg: use key_is_zero for comparing to zeros

Maybe an attacker on the system could use the infoleak in /proc to gauge
how long a wg(8) process takes to complete and determine the number of
leading zeros. This is somewhat ridiculous, but it's possible somebody
somewhere might at somepoint care in the future, so alright.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/config.c
src/encoding.c
src/encoding.h
src/ipc.c
src/show.c
src/showconf.c