Date: Sun, 27 Mar 2022 04:29:40 +1100 (AEDT) From: freebsd-lists@sensation.net.au To: freebsd-security@FreeBSD.org Subject: Adding entropy from external source into random number generator - how? Message-ID: <Pine.BSF.4.64.2203270426430.33073@satin.sensation.net.au>
index | next in thread | raw e-mail
Hi all. I was pointed to this mailing list, so I hope my query is reasonably on topic. I've developed simple firmware on a microcontroller which uses the values of multiple floating analog inputs to generate random numbers. I'd like to use this as an external source to add entropy into a FreeBSD system. I think the best way to do it would be to call random_harvest_queue(...), but what do I use as the source enum (see /usr/include/sys/random.h)? ENTROPYSOURCE, I guess? I believe it's also possible to open /dev/random for write to inject entropy, and I'm sure I saw mention of this being available around 12.0R, but I cannot find any mention of that scenario in the man pages. I guess the other question to ask is whether ~45 kilobytes per second of additional entropy is even useful in a typical situation? There's no strict security requirement or anything like that, it's really just a fun project that I'm hoping to actually use. :) All entropy is good entropy, right? Thanks in advance.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.64.2203270426430.33073>
