Using OneRNG hardware RNG can I get wireguard to use /dev/random
peter garner
peter at petergarner.net
Tue Jul 21 16:58:26 CEST 2020
Hi List,
Platform: Raspberry Pi4B, Raspbian Buster 10. This device dedicated to
wireguard. uname -a: Linux wireguard 4.19.118-v7l+ #1311 SMP Mon Apr 27
14:26:42 BST 2020 armv7l GNU/Linux. wg-quick is dated May 22 08:11
I've used my OneRNG v3.0 external device to recreate my SSH moduli and
am now looking to recreate my wireguard keys.
According to the Wireguard docs it uses /dev/urandom:
https://gist.github.com/rmoriz/58f1768218a4fbc4b318615bfb85111d
fd = open("/dev/urandom", O_RDONLY);
if (fd < 0)
return fd;
ret = read(fd, out, len);
close(fd);
The OneRNG utilises /dev/random though - is there any way I can get
wireguard to use /dev/random instead (without recompiling) ?
More information about the WireGuard
mailing list