diff options
| author | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2006-05-22 05:12:18 +0000 |
|---|---|---|
| committer | Rene Mayrhofer <rene@mayrhofer.eu.org> | 2006-05-22 05:12:18 +0000 |
| commit | aa0f5b38aec14428b4b80e06f90ff781f8bca5f1 (patch) | |
| tree | 95f3d0c8cb0d59d88900dbbd72110d7ab6e15b2a /programs/ranbits/ranbits.8 | |
| parent | 7c383bc22113b23718be89fe18eeb251942d7356 (diff) | |
| download | vyos-strongswan-aa0f5b38aec14428b4b80e06f90ff781f8bca5f1.tar.gz vyos-strongswan-aa0f5b38aec14428b4b80e06f90ff781f8bca5f1.zip | |
Import initial strongswan 2.7.0 version into SVN.
Diffstat (limited to 'programs/ranbits/ranbits.8')
| -rw-r--r-- | programs/ranbits/ranbits.8 | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/programs/ranbits/ranbits.8 b/programs/ranbits/ranbits.8 new file mode 100644 index 000000000..5a99a088f --- /dev/null +++ b/programs/ranbits/ranbits.8 @@ -0,0 +1,77 @@ +.TH IPSEC_RANBITS 8 "22 Aug 2000" +.\" RCSID $Id: ranbits.8,v 1.1 2004/03/15 20:35:30 as Exp $ +.SH NAME +ipsec ranbits \- generate random bits in ASCII form +.SH SYNOPSIS +.B ipsec +.B ranbits +[ +.B \-\-quick +] [ +.B \-\-continuous +] [ +.B \-\-bytes +] nbits +.SH DESCRIPTION +.I Ranbits +obtains +.I nbits +(rounded up to the nearest byte) +high-quality random bits from +.IR random (4), +and emits them on standard output as an ASCII string. +The default output format is +.IR datatot (3) +.B h +format: +lowercase hexadecimal with a +.B 0x +prefix and an underscore every 32 bits. +.PP +The +.B \-\-quick +option produces quick-and-dirty random bits: +instead of using the high-quality random bits from +.IR /dev/random , +which may take some time to supply the necessary bits if +.I nbits +is large, +.I ranbits +uses +.IR /dev/urandom , +which yields prompt results but lower-quality randomness. +.PP +The +.B \-\-continuous +option uses +.IR datatot (3) +.B x +output format, like +.B h +but without the underscores. +.PP +The +.B \-\-bytes +option causes +.I nbits +to be interpreted as a byte count rather than a bit count. +.SH FILES +/dev/random, /dev/urandom +.SH SEE ALSO +ipsec_datatot(3), random(4) +.SH HISTORY +Written for the Linux FreeS/WAN project +<http://www.freeswan.org> +by Henry Spencer. +.SH BUGS +There is an internal limit on +.IR nbits , +currently 20000. +.PP +Without +.BR \-\-quick , +.IR ranbits 's +run time is difficult to predict. +A request for a large number of bits, +at a time when the system's entropy pool is low on randomness, +may take quite a while to satisfy. |
