From: Jeffrey Walton <noloader@gmail.com>
To: peter garner <peter@petergarner.net>
Cc: wireguard@lists.zx2c4.com
Subject: Re: Using OneRNG hardware RNG can I get wireguard to use /dev/random
Date: Fri, 24 Jul 2020 04:32:32 -0400 [thread overview]
Message-ID: <CAH8yC8nCwwx8h8HmTGhsh10Dm4ThQTc=53ESfO=6iAXx4XvqmQ@mail.gmail.com> (raw)
In-Reply-To: <20200721155826.29f29036.peter@petergarner.net>
On Fri, Jul 24, 2020 at 4:28 AM peter garner <peter@petergarner.net> wrote:
>
> 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);
Unrelated, the kernel-crypto folks recommend using /dev/urandom.
Wiregaurd is following best practices. Also see
https://lkml.org/lkml/2017/7/20/993.
Jeff
next prev parent reply other threads:[~2020-07-24 8:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-21 14:58 peter garner
2020-07-24 8:32 ` Jeffrey Walton [this message]
2020-07-24 8:58 ` Ipad@petergarner.net
2020-07-24 8:55 ` Jason A. Donenfeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH8yC8nCwwx8h8HmTGhsh10Dm4ThQTc=53ESfO=6iAXx4XvqmQ@mail.gmail.com' \
--to=noloader@gmail.com \
--cc=peter@petergarner.net \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).