summaryrefslogtreecommitdiffhomepage
path: root/src/version.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-06-12 16:32:59 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-06-12 17:02:12 +0200
commit0d0681304d9a91970ea06ffce9bf98cc5e2db811 (patch)
treeb0f3498957cf088cab2512bf42efa7f15bc4f12d /src/version.h
parent46825dc7ccdf06ad83b106a2dd9d44873f3cc805 (diff)
random: wait for random bytes when generating nonces and ephemerals
We can let userspace configure wireguard interfaces before the RNG is fully initialized, since what we mostly care about is having good randomness for ephemerals and xchacha nonces. By deferring the wait to actually asking for the randomness, we give a lot more opportunity for gathering entropy. This won't cover entropy for hash table secrets or cookie secrets (which rotate anyway), but those have far less catastrophic failure modes, so ensuring good randomness for elliptic curve points and nonces should be sufficient. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/version.h')
0 files changed, 0 insertions, 0 deletions