diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-05-20 14:02:20 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-07-22 09:53:01 +0200 |
commit | 5082c1b20494e76c29fbfc5519153a6ad4fc389e (patch) | |
tree | bb385256ba772201c4a7e8205af8f30d2a18c18c /package/system/urngd/files/urngd.init | |
parent | bc0c0a55643f4ca69ef1f431d9c4542705d9bfb2 (diff) | |
download | upstream-5082c1b20494e76c29fbfc5519153a6ad4fc389e.tar.gz upstream-5082c1b20494e76c29fbfc5519153a6ad4fc389e.tar.bz2 upstream-5082c1b20494e76c29fbfc5519153a6ad4fc389e.zip |
urngd: add micro non-physical true RNG based on timing jitter
μrngd is OpenWrt's micro non-physical true random number generator based
on timing jitter.
Using the Jitter RNG core, the rngd provides an entropy source that
feeds into the Linux /dev/random device if its entropy runs low. It
updates the /dev/random entropy estimator such that the newly provided
entropy unblocks /dev/random.
The seeding of /dev/random also ensures that /dev/urandom benefits from
entropy. Especially during boot time, when the entropy of Linux is low,
the Jitter RNGd provides a source of sufficient entropy.
Acked-by: Jo-Philip Wich <jow@mein.io>
Tested-by: Lucian Cristian <lucian.cristian@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 714bd89fceee494282984d0ed76e4a3acde419e0)
Diffstat (limited to 'package/system/urngd/files/urngd.init')
-rw-r--r-- | package/system/urngd/files/urngd.init | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/package/system/urngd/files/urngd.init b/package/system/urngd/files/urngd.init new file mode 100644 index 0000000000..7531ca8f39 --- /dev/null +++ b/package/system/urngd/files/urngd.init @@ -0,0 +1,17 @@ +#!/bin/sh /etc/rc.common + +START=00 + +USE_PROCD=1 +NAME=urngd +PROG=/sbin/urngd + +start_service() { + procd_open_instance + procd_set_param command "$PROG" + procd_close_instance +} + +reload_service() { + procd_send_signal $PROG +} |