Debian Codegraph @

jitterentropy-rngd.1

raw
1 .\" Copyright (c) 2017 - 2026 by Stephan Mueller ([email protected])
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Formatted or processed versions of this manual, if unaccompanied by
13 .\" the source, must acknowledge the copyright and authors of this work.
14 .\" License.
15 .TH JITTERENTROPY-RNGD 1 2017-02-11
16 .SH NAME
17 jitterentropy-rngd \- CPU Jitter Random Number Generator Daemon
18 .SH SYNOPSIS
19 .B jitterentropy-rngd
20 [\fI\,OPTION\/\fR]
21 .SH DESCRIPTION
22 The
23 .I jitterentropy-rngd
24 application provides a source of good entropy by collecting CPU
25 execution time jitter. The collected entropy is injected into
26 the Linux kernel
27 .IR /dev/random
28 device using the
29 .IR RNDADDENTROPY
30 ioctl described in \fBrandom\fR(4).
31 .LP
32 The entropy in the CPU execution time jitter is magnified by
33 the CPU Jitter Random Number Generator. The CPU Jitter Random
34 Number Generator uses the CPU execution timing jitter to
35 generate a bit stream which complies with different statistical
36 measurements that determine the bit stream is random.
37 .LP
38 The CPU Jitter Random Number Generator works equally well in
39 virtualized environments as well as on bare-metal provided
40 a high-resolution timer is made available with the
41 .BR clock_gettime ()
42 function. The currently used timer can be checked by reading
43 the file
44 .IR /sys/devices/system/clocksource/clocksource0/current_clocksource .
45 If the clock source shall be changed, one of the available
46 clock sources listed in the file
47 .IR /sys/devices/system/clocksource/clocksource0/available_clocksource
48 can be written into the mentioned
49 .IR current_clocksource
50 file and the kernel immediately changes the use clock.
51 .LP
52 The CPU Jitter Random Number Generator unconditionally
53 injects 256 bits of entropy into the Linux kernel during
54 startup time before it daemonizes. Thus, when the invocation
55 of the
56 .IR jitterentropy-rngd
57 returns, the Linux kernel is seeded with at least 256 bits
58 of entropy. The reader should consider that the Linux kernel
59 performs a schedule operation during the injection of data
60 which implies that immediately after starting the
61 .IR jitterentropy-rngd
62 the kernel may still complain about insufficient entropy
63 available for
64 .IR /dev/urandom .
65 .LP
66 In addition, the
67 .IR jitterentropy-rngd
68 injects 256 bits of entropy every 10 minutes unconditionally
69 irrespective whether the kernel has sufficient entropy or not.
70 .LP
71 The following options are supported when invoking
72 .IR jitterentropy-rngd :
73 .TP
74 \fB\-v\fR, \fB\-\-verbose\fR
75 enable a verbose operation of the daemon. Using this option
76 multiple times increases the verbosity. Using this option
77 implies that the
78 .IR jitterentropy-rngd
79 will not daemonize.
80 .TP
81 \fB\-p\fR, \fB\-\-pid\fR [\fI\,FILE\/\fR]
82 triggers the creation of a PID file at the given location.
83 .TP
84 \fB\-h\fR, \fB\-\-help\fR
85 displays the help text
86 .TP
87 \fB\-\-version\fR
88 returns the version number of the
89 .IR jitterentropy-rngd .
90 .TP
91 \fB\-s\fR, \fB\-\-sp800-90b\fR
92 triggers a specific seeding strategy of the kernel /dev/random
93 device to insert entropy that ensures the ChaCha20 DRNG behind
94 /dev/random receives 256 bits of entropy as defined by SP800-90B.
95 .TP
96 \fB\-f\fR, \fB\-\-flags\fR [\fI\,FLAGS\/\fR]
97 allows specifying the flags value documented with
98 .IR jitterentropy(3)
99 when allocating the Jitter RNG.
100 .TP
101 \fB\-o\fR, \fB\-\-osr\fR [\fI\,OSR\/\fR]
102 allows specifying the oversampling rate (OSR) as documented with
103 .IR jitterentropy(3)
104 when allocating the Jitter RNG.
105 .TP
106 \fB\-\-status\fR
107 returns the Jitter RNG status output from the
108 .IR jitterentropy(3)
109 libbrary API of
110 .IR jent_status .
111 To make sure this output is helpful,
112 all other parameters should be also set identically to the
113 runtime invocation of the daemon.
114 .PP
115 .SH NOTES
116 The
117 .IR jitterentropy-rngd
118 does not perform write operations on any file system object.
119 Thus, it can be executed on a fully read-only mounted file
120 system.
121 .LP
122 The random bit stream generated by
123 .IR jitterentropy-rngd
124 is considered to hold full entropy.
125 .PP
126 .SH SEE ALSO
127 \fBrandom\fR(4)
128 \fBclock_gettime\fR(2)