summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpirofti <pirofti@openbsd.org>2013-10-24 21:20:11 +0000
committerpirofti <pirofti@openbsd.org>2013-10-24 21:20:11 +0000
commit88d0a9220a33bb0149a02244ecad22774e89cd74 (patch)
treed1f48b26374a04fd74ab46cdc842ef2dca80e804
parentEnable octrng(4). (diff)
downloadwireguard-openbsd-88d0a9220a33bb0149a02244ecad22774e89cd74.tar.xz
wireguard-openbsd-88d0a9220a33bb0149a02244ecad22774e89cd74.zip
Document the octrng(4) driver.
-rw-r--r--share/man/man4/man4.octeon/Makefile6
-rw-r--r--share/man/man4/man4.octeon/octrng.450
2 files changed, 56 insertions, 0 deletions
diff --git a/share/man/man4/man4.octeon/Makefile b/share/man/man4/man4.octeon/Makefile
new file mode 100644
index 00000000000..1026aaafe6b
--- /dev/null
+++ b/share/man/man4/man4.octeon/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.1 2013/10/24 21:20:11 pirofti Exp $
+
+MAN= octrng.4
+MANSUBDIR=octeon
+
+.include <bsd.prog.mk>
diff --git a/share/man/man4/man4.octeon/octrng.4 b/share/man/man4/man4.octeon/octrng.4
new file mode 100644
index 00000000000..6940812f6f9
--- /dev/null
+++ b/share/man/man4/man4.octeon/octrng.4
@@ -0,0 +1,50 @@
+.\" $OpenBSD: octrng.4,v 1.1 2013/10/24 21:20:11 pirofti Exp $
+.\"
+.\" Copyright (c) 2013 Paul Irofti <pirofti@openbsd.org>
+.\"
+.\" Permission to use, copy, modify, and distribute this software for any
+.\" purpose with or without fee is hereby granted, provided that the above
+.\" copyright notice and this permission notice appear in all copies.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+.\"
+.\"
+.Dd $Mdocdate: October 24 2013 $
+.Dt OCTRNG 4
+.Os
+.Sh NAME
+.Nm octrng
+.Nd Octeon Random Number Generator
+.Sh SYNOPSIS
+.Cd "octrng* at iobus?"
+.Sh DESCRIPTION
+The
+.Nm
+driver supports the random number generator found on the CN50XX chips.
+.Pp
+After the 5 seconds it takes for the device to be initialized, the
+.Nm
+driver feeds the random subsystem's entropy pool 32-bits of data every
+10 miliseconds through
+.Xr add_true_randomness 9
+API.
+.Sh SEE ALSO
+.Xr arc4random 9 ,
+.Xr intro 4
+.Sh HISTORY
+The
+.Nm
+driver first appeared in
+.Ox 5.5 .
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Paul Irofti Aq Mt pirofti@openbsd.org .