path: root/rngtest.1.in
diff options
authorJeff Garzik <jgarzik@pobox.com>2005-10-25 02:49:12 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-10-25 02:49:12 -0400
commit61af3de31a9a4d4928ebd468ce645b9596f46184 (patch)
tree5a3d700aa4ba2b70546a0614d3bcf1c9af2841cb /rngtest.1.in
Import rng-tools from private subversion repo.
Diffstat (limited to 'rngtest.1.in')
1 files changed, 88 insertions, 0 deletions
diff --git a/rngtest.1.in b/rngtest.1.in
new file mode 100644
index 0000000..a116caa
--- /dev/null
+++ b/rngtest.1.in
@@ -0,0 +1,88 @@
+.\" Copyright (c) 2004 Henrique de Moraes Holschuh -- hmh@debian.org
+.TH RNGTEST 1 "March 2004" "@PACKAGE@ @VERSION@"
+rngtest \- Check the randomness of data using FIPS 140-2 tests
+.B rngtest
+[\fB\-c\fR \fIn\fR | \fB\-\-blockcount=\fIn\fR]
+[\fB\-b\fR \fIn\fR | \fB\-\-blockstats=\fIn\fR]
+[\fB\-t\fR \fIn\fR | \fB\-\-timedstats=\fIn\fR]
+[\fB\-p\fR | \fB\-\-pipe\fR]
+[\fB\-?\fR] [\fB\-\-help\fR]
+[\fB\-V\fR] [\fB\-\-version\fR]
+\fIrngtest\fR works on blocks of 20000 bits at a time, using the FIPS 140-2
+(errata of 2001-10-10) tests to verify the randomness of the block of data.
+It takes input from \fIstdin\fR, and outputs statistics to \fIstderr\fR,
+optionally echoing blocks that passed the FIPS tests to \fIstdout\fR
+(when operating in \fIpipe mode\fR). Errors are sent to \fIstderr\fR.
+At startup, \fIrngtest\fR will trow away the first 32 bits of data when
+operating in \fIpipe mode\fR. It will use the next 32 bits of data to
+bootstrap the FIPS tests (even when not operating in \fIpipe mode\fR).
+These bits are not tested for randomness.
+Statistics are dumped to \fIstderr\fR when the program exits.
+\fB\-p\fR, \fB\-\-pipe\fR
+Enable \fIpipe mode\fR. All data blocks that pass the FIPS tests are
+echoed to \fIstdout\fR, and \fIrngtest\fR operates in silent mode.
+\fB\-c\fR \fIn\fR, \fB\-\-blockcount=\fIn\fR (default: 0)
+Exit after processing n input blocks, if n is not zero.
+\fB\-b\fR \fIn\fR, \fB\-\-blockstats=\fIn\fR (default: 0)
+Dump statistics every n blocks, if n is not zero.
+\fB\-t\fR \fIn\fR, \fB\-\-timedstats=\fIn\fR (default: 0)
+Dump statistics every n secods, if n is not zero.
+\fB\-?\fR, \fB\-\-help\fR
+Give a short summary of all program options.
+\fB\-V\fR, \fB\-\-version\fR
+Print program version
+\fIrngtest\fR will dump statistics to \fIstderr\fR when it exits, and
+when told to by \fIblockstats\fR or \fItimedstats\fR.
+\fBFIPS 140-2 successes\fR and \fBFIPS 140-2 failures\fR counts the number of
+20000-bit blocks either accepted or rejected by the FIPS 140-2 tests. The
+other statistics show a breakdown of the FIPS 140-2 failures by FIPS
+140-2 test. See the FIPS 140-2 document for more information (note that these
+tests are defined on FIPS 140-1 and FIPS 140-2 errata of 2001-10-10. They
+were removed in FIPS 140-2 errata of 2002-12-03).
+The speed statistics are taken for every 20000-bit block trasferred or
+\fB0\fR if no errors happen, and no blocks fail the FIPS tests.
+\fB1\fR if no errors happen, but at least one block fails the FIPS tests.
+\fB10\fR if there are problems with the parameters.
+\fB11\fR if an input/output error happens.
+\fB12\fR if an operating system or resource starvation error happens.
+random(4), rngd(8)
+FIPS PUB 140-2 Security Requirements for Cryptographic Modules, NIST,
+Henrique de Moraes Holschuh <hmh@debian.org>