diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-05-13 15:59:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-05-13 15:59:14 +0000 |
commit | b1bcf9ef3aac0903b35c0bea43c06588bf72650f (patch) | |
tree | fb3dfee10020caa143b554cd4730b6ec5f860c4d /share | |
parent | 4864d97f29d7576646579a9673c981f39b978f57 (diff) |
nearly empty skeleton for crypto.4
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/Makefile | 5 | ||||
-rw-r--r-- | share/man/man4/crypto.4 | 78 |
2 files changed, 81 insertions, 2 deletions
diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile index 399ce2db205..2c6e02760eb 100644 --- a/share/man/man4/Makefile +++ b/share/man/man4/Makefile @@ -1,11 +1,12 @@ -# $OpenBSD: Makefile,v 1.160 2001/05/03 22:10:21 millert Exp $ +# $OpenBSD: Makefile,v 1.161 2001/05/13 15:59:13 deraadt Exp $ MAN= aac.4 ac97.4 adv.4 aha.4 ahb.4 ahc.4 aic.4 ami.4 amphy.4 an.4 \ aria.4 ast.4 \ atalk.4 atapiscsi.4 audio.4 aue.4 auvia.4 awi.4 bpf.4 bridge.4 \ bmtphy.4 brgphy.4 bt.4 cac.4 cardbus.4 ccd.4 cd.4 \ ch.4 clnp.4 clcs.4 clct.4 cltp.4 \ - cmpci.4 cnw.4 com.4 cue.4 cy.4 dc.4 ddb.4 de.4 dpt.4 drum.4 eap.4 ec.4 \ + cmpci.4 cnw.4 com.4 crypto.4 \ + cue.4 cy.4 dc.4 ddb.4 de.4 dpt.4 drum.4 eap.4 ec.4 \ eephy.4 ef.4 eg.4 el.4 enc.4 ep.4 esis.4 \ eso.4 ess.4 exphy.4 fd.4 fdc.4 fpa.4 \ fms.4 fxp.4 gdt.4 gre.4 hifn.4 hsq.4 auich.4 icmp.4 icsphy.4 \ diff --git a/share/man/man4/crypto.4 b/share/man/man4/crypto.4 new file mode 100644 index 00000000000..f432ba8c7ed --- /dev/null +++ b/share/man/man4/crypto.4 @@ -0,0 +1,78 @@ +.\" $OpenBSD: crypto.4,v 1.1 2001/05/13 15:59:13 deraadt Exp $ +.\" +.\" Copyright (c) 2001 Theo de Raadt +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. The name of the author may not be used to endorse or promote products +.\" derived from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +.\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, +.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd May 13, 2001 +.Dt CRYPTO 4 +.Os +.Sh NAME +.Nm crypto +.Nd hardware crypto access driver +.Sh SYNOPSIS +.Nm pseudo-device crypto +.Op Ar count +.Sh DESCRIPTION +The +.Xr crypto +driver provides userland applications access to hardware crypto support +via the kernel. +The +.Pa /dev/crypto +device node primarily operates in an +.Xr ioctl 2 +based model, permitting a variety of applications to query device capabilities, +submit transactions, and get results. +.Pp +If +.Ar count +given in the specification, and is greater than 0, a maximum of one +.Nm crypto +device is created. +.Pp +The following +.Xr ioctl 2 +calls apply only to pseudo terminals: +.Bl -tag -width CIOCGSESSION +.It Dv CIOCGSESSION +Setup a new crypto session for a new type of operation. +.It Dv CIOCFSESSION +Free a previously established session. +.It Dv CIOCCRYPT +Perform a crypto operation against a previously setup session. +.El +.Sh FILES +.Bl -tag -width /dev/crypto -compact +.It Pa /dev/crypto +crypto access device +.El +.Sh SEE ALSO +.Xr crypto 9 +.Sh HISTORY +The +.Nm +driver appeared in +.Ox 3.0 . |