| 1 | Jitter RNG Daemon |
| 2 | ================= |
| 3 | |
| 4 | Using the Jitter RNG core, the rngd provides an entropy source that feeds |
| 5 | into the Linux /dev/random device if its entropy runs low. It updates the |
| 6 | /dev/random entropy estimator such that the newly provided entropy |
| 7 | unblocks /dev/random. |
| 8 | |
| 9 | The seeding of /dev/random also ensures that /dev/urandom benefits from |
| 10 | entropy. Especially during boot time, when the entropy of Linux is low, |
| 11 | the Jitter RNGd provides a source of sufficient entropy. |
| 12 | |
| 13 | By using the SP800-90B-compliant Jitter RNG core library, the RNGd itself |
| 14 | is now fully SP800-90B compliant. |
| 15 | |
| 16 | Build Instructions |
| 17 | ================== |
| 18 | |
| 19 | To generate the shared library `make` followed by `make install`. |
| 20 | |
| 21 | Usage |
| 22 | ===== |
| 23 | |
| 24 | See jitterentropy --help or see the man page jitterentropy-rngd.1. |
| 25 | |
| 26 | Systemd Unit File |
| 27 | ================= |
| 28 | |
| 29 | A systemd unit file is provided with jitterentropy.service which can be |
| 30 | copied to /etc/systemd/system and enabled with the command |
| 31 | `systemctl enable jitterentropy`. |
| 32 | |
| 33 | The unit file ensures that the Jitter RNGd is started as one of the first |
| 34 | daemons during the user space start process. This shall guarantee that |
| 35 | any cryptographic daemons, like sshd or a web server, benefits from a seeded |
| 36 | /dev/random and /dev/urandom device at the time they start up. |
| 37 | |
| 38 | Docker [](https://github.com/smuellerDD/jitterentropy-rngd/actions/workflows/docker-build-image.yml) |
| 39 | ====== |
| 40 | |
| 41 | Run using `docker compose`: |
| 42 | |
| 43 | ```sh |
| 44 | docker compose up -d |
| 45 | ``` |
| 46 | |
| 47 | Manual steps: |
| 48 | |
| 49 | 1. Build an image from the latest source code. |
| 50 | ```sh |
| 51 | docker build -t smuellerdd/jitterentropy-rngd \ |
| 52 | 'https://github.com/smuellerDD/jitterentropy-rngd.git' |
| 53 | ``` |
| 54 | |
| 55 | 2. Create and run a container using the newly built image. |
| 56 | ```sh |
| 57 | docker run -d --name=rngd --restart=always \ |
| 58 | --cap-add=SYS_ADMIN --cap-drop=ALL \ |
| 59 | --network=none smuellerdd/jitterentropy-rngd |
| 60 | ``` |
| 61 | |
| 62 | Version Numbers |
| 63 | =============== |
| 64 | The version numbers for this library have the following schema: |
| 65 | MAJOR.MINOR.PATCHLEVEL |
| 66 | |
| 67 | Changes in the major number implies API and ABI incompatible changes, or |
| 68 | functional changes that require consumer to be updated (as long as this |
| 69 | number is zero, the API is not considered stable and can change without a |
| 70 | bump of the major version). |
| 71 | |
| 72 | Changes in the minor version are API compatible, but the ABI may change. |
| 73 | Functional enhancements only are added. Thus, a consumer can be left |
| 74 | unchanged if enhancements are not considered. The consumer only needs to |
| 75 | be recompiled. |
| 76 | |
| 77 | Patchlevel changes are API / ABI compatible. No functional changes, no |
| 78 | enhancements are made. This release is a bug fixe release only. The |
| 79 | consumer can be left unchanged and does not need to be recompiled. |
| 80 | |
| 81 | Author |
| 82 | ====== |
| 83 | Stephan Mueller <[email protected]> |