1 .\" $NetBSD: rndctl.8,v 1.16 2008/11/06 15:58:16 apb Exp $
3 .\" Copyright (c) 1997 Michael Graff
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. The name of the author may not be used to endorse or promote products
15 .\" derived from this software without specific prior written permission.
17 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .Nd in-kernel random number generator management tool
38 .Op Fl d Ar devname | Fl t Ar devtype
41 .Op Fl d Ar devname | Fl t Ar devtype
45 program displays statistics on the current state of the
47 pseudo-driver, and allows the administrator to control which sources
48 are allowed to contribute to the randomness pool maintained by
50 as well as whether a given source counts as strongly random.
52 The following options are available:
53 .Bl -tag -width 123456
55 Disable collection of timing information for the given
56 device name or device type.
58 Enable collection of timing information for the given
59 device name of device type.
63 is altered or displayed.
64 This is mutually exclusive with
67 Disable entropy estimation from the collected timing information for
68 the given device name or device type.
69 If collection is still enabled, timing information is still
70 collected and mixed into the internal entropy pool,
71 but no entropy is assumed to be present.
73 Enable entropy estimation using the collected timing information
74 for the given device name or device type.
76 List all sources, or, if the
80 flags are specified, only those specified by the
86 Display statistics on the current state of the random collection pool.
90 are altered or displayed.
91 This is mutually exclusive with
94 The available types are:
95 .Bl -tag -width "diskx"
103 Terminal, mouse, or other user input devices.
105 Random number generators.
109 .Bl -tag -width /dev/urandomx -compact
115 Always returns data, degenerates to a pseudo-random generator.
123 program was first made available in
128 program was written by
130 .Aq explorer@flame.org .
132 Turning on entropy estimation from unsafe or predictable sources will
133 weaken system security, while turning on entropy collection from such
134 sources may weaken system security.
136 Care should be taken when using this command.