| Commit | Line | Data |
|---|---|---|
| 984263bc | 1 | .\" $OpenBSD: crypto.4,v 1.4 2002/09/12 07:15:03 deraadt Exp $ |
| 984263bc MD |
2 | .\" |
| 3 | .\" Copyright (c) 2001 Theo de Raadt | |
| 4 | .\" All rights reserved. | |
| 5 | .\" | |
| 6 | .\" Redistribution and use in source and binary forms, with or without | |
| 7 | .\" modification, are permitted provided that the following conditions | |
| 8 | .\" are met: | |
| 9 | .\" 1. Redistributions of source code must retain the above copyright | |
| 10 | .\" notice, this list of conditions and the following disclaimer. | |
| 11 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
| 12 | .\" notice, this list of conditions and the following disclaimer in the | |
| 13 | .\" documentation and/or other materials provided with the distribution. | |
| 14 | .\" 3. The name of the author may not be used to endorse or promote products | |
| 15 | .\" derived from this software without specific prior written permission. | |
| 16 | .\" | |
| 17 | .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |
| 18 | .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |
| 19 | .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
| 20 | .\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, | |
| 21 | .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
| 22 | .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |
| 23 | .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
| 24 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |
| 25 | .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | |
| 26 | .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
| 27 | .\" POSSIBILITY OF SUCH DAMAGE. | |
| 28 | .\" | |
| 3e33542b SW |
29 | .\" $FreeBSD: src/share/man/man4/crypto.4,v 1.9 2009/03/03 07:58:01 brueffer Exp $ |
| 30 | .\" | |
| cba13667 | 31 | .Dd August 21, 2010 |
| 984263bc MD |
32 | .Dt CRYPTO 4 |
| 33 | .Os | |
| 34 | .Sh NAME | |
| 3e33542b SW |
35 | .Nm crypto , |
| 36 | .Nm cryptodev | |
| 984263bc MD |
37 | .Nd hardware crypto access driver |
| 38 | .Sh SYNOPSIS | |
| 0fa1a749 | 39 | .Cd device crypto |
| 3e33542b | 40 | .Cd device cryptodev |
| 984263bc MD |
41 | .Sh DESCRIPTION |
| 42 | The | |
| 43 | .Nm | |
| 3e33542b SW |
44 | driver provides a device-independent framework to support |
| 45 | cryptographic operations in the kernel. | |
| 984263bc | 46 | The |
| 3e33542b SW |
47 | .Nm cryptodev |
| 48 | driver provides userland applications access to this support | |
| 49 | through the | |
| 984263bc | 50 | .Pa /dev/crypto |
| 3e33542b SW |
51 | device. |
| 52 | This node primarily operates in an | |
| 984263bc MD |
53 | .Xr ioctl 2 |
| 54 | based model, permitting a variety of applications to query device capabilities, | |
| 55 | submit transactions, and get results. | |
| 56 | .Pp | |
| 57 | If | |
| 58 | .Ar count | |
| 59 | given in the specification, and is greater than 0, a maximum of one | |
| 9b5a9965 | 60 | .Nm |
| 984263bc MD |
61 | device is created. |
| 62 | .Pp | |
| 63 | The following | |
| 64 | .Xr ioctl 2 | |
| 65 | calls apply only to the | |
| 9b5a9965 | 66 | .Nm |
| 984263bc | 67 | devices: |
| 291ffd2f | 68 | .Bl -tag -width ".Dv CIOCGSESSION" |
| 984263bc MD |
69 | .It Dv CIOCGSESSION |
| 70 | Setup a new crypto session for a new type of operation. | |
| 71 | .It Dv CIOCFSESSION | |
| 72 | Free a previously established session. | |
| 73 | .It Dv CIOCCRYPT | |
| 74 | Perform a crypto operation against a previously setup session. | |
| 75 | .El | |
| 984263bc MD |
76 | .Sh FEATURES |
| 77 | Depending on hardware being present, the following symmetric and | |
| 78 | asymmetric cryptographic features are potentially available from | |
| 79 | .Pa /dev/crypto : | |
| 80 | .Pp | |
| 3e33542b SW |
81 | .Bl -tag -width ".Dv CRYPTO_RIPEMD160_HMAC" -offset indent -compact |
| 82 | .It Dv CRYPTO_DES_CBC | |
| 83 | .It Dv CRYPTO_3DES_CBC | |
| 84 | .It Dv CRYPTO_BLF_CBC | |
| 85 | .It Dv CRYPTO_CAMELLIA_CBC | |
| 86 | .It Dv CRYPTO_CAST_CBC | |
| 87 | .It Dv CRYPTO_SKIPJACK_CBC | |
| 88 | .It Dv CRYPTO_MD5_HMAC | |
| 89 | .It Dv CRYPTO_SHA1_HMAC | |
| 90 | .It Dv CRYPTO_RIPEMD160_HMAC | |
| 91 | .It Dv CRYPTO_MD5_KPDK | |
| 92 | .It Dv CRYPTO_SHA1_KPDK | |
| 93 | .It Dv CRYPTO_AES_CBC | |
| cba13667 AH |
94 | .It Dv CRYPTO_AES_XTS |
| 95 | .It Dv CRYPTO_AES_CTR | |
| 3e33542b SW |
96 | .It Dv CRYPTO_ARC4 |
| 97 | .It Dv CRYPTO_MD5 | |
| 98 | .It Dv CRYPTO_SHA1 | |
| 99 | .It Dv CRK_MOD_EXP | |
| 100 | .It Dv CRK_MOD_EXP_CRT | |
| 101 | .It Dv CRK_DSA_SIGN | |
| 102 | .It Dv CRK_DSA_VERIFY | |
| 103 | .It Dv CRK_DH_COMPUTE_KEY | |
| 984263bc | 104 | .El |
| 984263bc | 105 | .Sh FILES |
| 3e33542b | 106 | .Bl -tag -width ".Pa /dev/crypto" -compact |
| 984263bc MD |
107 | .It Pa /dev/crypto |
| 108 | crypto access device | |
| 109 | .El | |
| 110 | .Sh SEE ALSO | |
| d884cb81 | 111 | .Xr aesni 4 , |
| b9302ab8 | 112 | .Xr glxsb 4 , |
| 984263bc | 113 | .Xr hifn 4 , |
| 3e33542b SW |
114 | .Xr ipsec 4 , |
| 115 | .Xr padlock 4 , | |
| 116 | .\".Xr safe 4 , | |
| 984263bc | 117 | .Xr ubsec 4 , |
| 3e33542b | 118 | .\".Xr geli 8 , |
| 984263bc MD |
119 | .Xr crypto 9 |
| 120 | .Sh HISTORY | |
| 121 | The | |
| 122 | .Nm | |
| 123 | driver first appeared in | |
| b5ac91c1 | 124 | .Ox 3.0 . |
| 984263bc MD |
125 | The |
| 126 | .Nm | |
| b5ac91c1 | 127 | driver was imported to |
| 3e33542b | 128 | .Fx 5.0 . |