]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - share/man/man4/hifn.4
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / share / man / man4 / hifn.4
1 .\"     $OpenBSD: hifn.4,v 1.32 2002/09/26 07:55:40 miod Exp $
2 .\"
3 .\" Copyright (c) 2000 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 .\"
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 .\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
19 .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
24 .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 .\" POSSIBILITY OF SUCH DAMAGE.
26 .\"
27 .\" $FreeBSD$
28 .\"
29 .Dd October 19, 2009
30 .Dt HIFN 4
31 .Os
32 .Sh NAME
33 .Nm hifn
34 .Nd Hifn 7751/7951/7811/7955/7956 crypto accelerator
35 .Sh SYNOPSIS
36 To compile this driver into the kernel,
37 place the following lines in your
38 kernel configuration file:
39 .Bd -ragged -offset indent
40 .Cd "device crypto"
41 .Cd "device cryptodev"
42 .Cd "device hifn"
43 .Ed
44 .Pp
45 Alternatively, to load the driver as a
46 module at boot time, place the following line in
47 .Xr loader.conf 5 :
48 .Bd -literal -offset indent
49 hifn_load="YES"
50 .Ed
51 .Sh DESCRIPTION
52 The
53 .Nm
54 driver supports various cards containing the Hifn 7751, 7951,
55 7811, 7955, and 7956 chipsets.
56 .Pp
57 The
58 .Nm
59 driver registers itself to accelerate DES, Triple-DES,
60 AES (7955 and 7956 only), ARC4, MD5,
61 MD5-HMAC, SHA1, and SHA1-HMAC operations for
62 .Xr ipsec 4
63 and
64 .Xr crypto 4 .
65 .Pp
66 The Hifn
67 .Tn 7951 ,
68 .Tn 7811 ,
69 .Tn 7955 ,
70 and
71 .Tn 7956
72 will also supply data to the kernel
73 .Xr random 4
74 subsystem.
75 .Sh HARDWARE
76 The
77 .Nm
78 driver supports various cards containing the Hifn 7751, 7951,
79 7811, 7955, and 7956
80 chipsets, such as:
81 .Bl -tag -width namenamenamena -offset indent
82 .It Invertex AEON
83 No longer being made.
84 Came as 128KB SRAM model, or 2MB DRAM model.
85 .It Hifn 7751
86 Reference board with 512KB SRAM.
87 .It PowerCrypt
88 Comes with 512KB SRAM.
89 .It XL-Crypt
90 Only board based on 7811 (which is faster than 7751 and has
91 a random number generator).
92 .It NetSec 7751
93 Supports the most IPsec sessions, with 1MB SRAM.
94 .It Soekris Engineering vpn1201 and vpn1211
95 See
96 .Pa http://www.soekris.com/ .
97 Contains a 7951 and supports symmetric and random number operations.
98 .It Soekris Engineering vpn1401 and vpn1411
99 See
100 .Pa http://www.soekris.com/ .
101 Contains a 7955 and supports symmetric and random number operations.
102 .El
103 .Sh SEE ALSO
104 .Xr crypt 3 ,
105 .Xr crypto 4 ,
106 .Xr intro 4 ,
107 .Xr ipsec 4 ,
108 .Xr random 4 ,
109 .Xr crypto 9
110 .Sh HISTORY
111 The
112 .Nm
113 device driver appeared in
114 .Ox 2.7 .
115 The
116 .Nm
117 device driver was imported to
118 .Fx 5.0 .
119 .Sh CAVEATS
120 The Hifn 9751 shares the same PCI ID.
121 This chip is basically a 7751, but with the cryptographic functions missing.
122 Instead, the 9751 is only capable of doing compression.
123 Since we do not currently attempt to use any of these chips to do
124 compression, the 9751-based cards are not useful.
125 .Pp
126 Support for the 7955 and 7956 is incomplete; the asymmetric crypto
127 facilities are to be added and the performance is suboptimal.
128 .Sh BUGS
129 The 7751 chip starts out at initialization by only supporting compression.
130 A proprietary algorithm, which has been reverse engineered, is required to
131 unlock the cryptographic functionality of the chip.
132 It is possible for vendors to make boards which have a lock ID not known
133 to the driver, but all vendors currently just use the obvious ID which is
134 13 bytes of 0.