Document kern.usercrypto and kern.userasymcrypto.

This commit is contained in:
jruoho 2010-04-20 08:27:24 +00:00
parent b74a54b7d3
commit 88aba63225
2 changed files with 28 additions and 9 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: crypto.4,v 1.19 2010/01/31 15:05:49 wiz Exp $ .\" $NetBSD: crypto.4,v 1.20 2010/04/20 08:27:24 jruoho Exp $
.\" .\"
.\" Copyright (c) 2008 The NetBSD Foundation, Inc. .\" Copyright (c) 2008 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -53,7 +53,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
.\" THE POSSIBILITY OF SUCH DAMAGE. .\" THE POSSIBILITY OF SUCH DAMAGE.
.\" .\"
.Dd January 28, 2010 .Dd April 20, 2010
.Dt CRYPTO 4 .Dt CRYPTO 4
.Os .Os
.Sh NAME .Sh NAME
@ -94,6 +94,17 @@ User-mode applications should open the special device,
then issue then issue
.Xr ioctl 2 .Xr ioctl 2
calls on the descriptor. calls on the descriptor.
User-mode access to
.Pa /dev/crypto
is generally controlled by two
.Xr sysctl 8
variables,
.Ic kern.usercrypto
and
.Ic kern.userasymcrypto .
See
.Xr sysctl 7
for additional details.
.Pp .Pp
The The
.Nm .Nm

View File

@ -1,4 +1,4 @@
.\" $NetBSD: sysctl.7,v 1.44 2010/04/20 07:58:16 jruoho Exp $ .\" $NetBSD: sysctl.7,v 1.45 2010/04/20 08:27:24 jruoho Exp $
.\" .\"
.\" Copyright (c) 1993 .\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -321,8 +321,8 @@ privilege may change the value.
.It kern.timex struct no .It kern.timex struct no
.It kern.tkstat node not applicable .It kern.tkstat node not applicable
.It kern.urandom integer no .It kern.urandom integer no
.\".It kern.usercrypto integer yes .It kern.usercrypto integer yes
.\" It kern.userasymcrypto integer yes .It kern.userasymcrypto integer yes
.It kern.veriexec node not applicable .It kern.veriexec node not applicable
.It kern.version string no .It kern.version string no
.It kern.vnode struct vnode no .It kern.vnode struct vnode no
@ -933,10 +933,18 @@ The number of raw input characters.
.El .El
.It Li kern.urandom ( KERN_URND ) .It Li kern.urandom ( KERN_URND )
Random integer value. Random integer value.
.\".It Li kern.usercrypto .It Li kern.usercrypto
.\" XXX: Undocumented. When enabled, allows userland to
.\".It Li kern.userasymcrypto .Xr open 2
.\" XXX: Undocumented. the
.Pa /dev/crypto
special device, used by the
.Xr crypto 4
system.
.It Li kern.userasymcrypto
Enables or disables the use of software asymmetric crypto support in the
.Xr crypto 4
system.
.It Li kern.veriexec .It Li kern.veriexec
Runtime information for Runtime information for
.Xr veriexec 8 . .Xr veriexec 8 .