xref: /freebsd/share/man/man4/hifn.4 (revision bbc8551c96ab8f837f6a2ae6fad3bf28167c7f73)
1f4bf4335SSam Leffler.\"	$OpenBSD: hifn.4,v 1.32 2002/09/26 07:55:40 miod Exp $
2f4bf4335SSam Leffler.\"
3f4bf4335SSam Leffler.\" Copyright (c) 2000 Theo de Raadt
4f4bf4335SSam Leffler.\" All rights reserved.
5f4bf4335SSam Leffler.\"
6f4bf4335SSam Leffler.\" Redistribution and use in source and binary forms, with or without
7f4bf4335SSam Leffler.\" modification, are permitted provided that the following conditions
8f4bf4335SSam Leffler.\" are met:
9f4bf4335SSam Leffler.\" 1. Redistributions of source code must retain the above copyright
10f4bf4335SSam Leffler.\"    notice, this list of conditions and the following disclaimer.
11f4bf4335SSam Leffler.\" 2. Redistributions in binary form must reproduce the above copyright
12f4bf4335SSam Leffler.\"    notice, this list of conditions and the following disclaimer in the
13f4bf4335SSam Leffler.\"    documentation and/or other materials provided with the distribution.
14f4bf4335SSam Leffler.\" 3. The name of the author may not be used to endorse or promote products
15f4bf4335SSam Leffler.\"    derived from this software without specific prior written permission.
16f4bf4335SSam Leffler.\"
17f4bf4335SSam Leffler.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18f4bf4335SSam Leffler.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19f4bf4335SSam Leffler.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20f4bf4335SSam Leffler.\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
21f4bf4335SSam Leffler.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22f4bf4335SSam Leffler.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23f4bf4335SSam Leffler.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24f4bf4335SSam Leffler.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
25f4bf4335SSam Leffler.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26f4bf4335SSam Leffler.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27f4bf4335SSam Leffler.\" POSSIBILITY OF SUCH DAMAGE.
28f4bf4335SSam Leffler.\"
29a2931c09SRuslan Ermilov.\" $FreeBSD$
30a2931c09SRuslan Ermilov.\"
31bbc8551cSSam Leffler.Dd October 8, 2003
32f4bf4335SSam Leffler.Dt HIFN 4
33f4bf4335SSam Leffler.Os
34f4bf4335SSam Leffler.Sh NAME
35f4bf4335SSam Leffler.Nm hifn
36bbc8551cSSam Leffler.Nd Hifn 7751/7951/7811/7955/7956 crypto accelerator
37f4bf4335SSam Leffler.Sh SYNOPSIS
38a2931c09SRuslan Ermilov.Cd device hifn
39f4bf4335SSam Leffler.Sh DESCRIPTION
40f4bf4335SSam LefflerThe
41f4bf4335SSam Leffler.Nm
42bbc8551cSSam Lefflerdriver supports various cards containing the Hifn 7751, 7951,
43bbc8551cSSam Leffler7811, 7955, and 7956
44f4bf4335SSam Lefflerchipsets, such as
45f4bf4335SSam Leffler.Bl -tag -width namenamenamena -offset indent
46f4bf4335SSam Leffler.It Invertex AEON
47f4bf4335SSam LefflerNo longer being made.
48f4bf4335SSam LefflerCame as 128KB SRAM model, or 2MB DRAM model.
49f4bf4335SSam Leffler.It Hifn 7751
50f4bf4335SSam LefflerReference board with 512KB SRAM.
51f4bf4335SSam Leffler.It PowerCrypt
52f4bf4335SSam LefflerSee
53f4bf4335SSam Leffler.Pa http://www.powercrypt.com/ .
54f4bf4335SSam LefflerComes with 512KB SRAM.
55f4bf4335SSam Leffler.It XL-Crypt
56f4bf4335SSam LefflerSee
57f4bf4335SSam Leffler.Pa http://www.powercrypt.com/ .
58f4bf4335SSam LefflerOnly board based on 7811 (which is faster than 7751 and has
59f4bf4335SSam Lefflera random number generator).
60f4bf4335SSam Leffler.It NetSec 7751
61f4bf4335SSam LefflerSee
62f4bf4335SSam Leffler.Pa http://www.netsec.net/ .
63f4bf4335SSam LefflerSupports the most IPsec sessions, with 1MB SRAM.
64f4bf4335SSam Leffler.It Soekris Engineering vpn1201 and vpn1211
65f4bf4335SSam LefflerSee
66f4bf4335SSam Leffler.Pa http://www.soekris.com/ .
67f4bf4335SSam LefflerContains a 7951 and supports symmetric and random number operations.
68bbc8551cSSam Leffler.It Soekris Engineering vpn1401 and vpn1411
69bbc8551cSSam LefflerSee
70bbc8551cSSam Leffler.Pa http://www.soekris.com/ .
71bbc8551cSSam LefflerContains a 7955 and supports symmetric and random number operations.
72f4bf4335SSam Leffler.El
73f4bf4335SSam Leffler.Pp
74f4bf4335SSam LefflerThe
75f4bf4335SSam Leffler.Nm
76bbc8551cSSam Lefflerdriver registers itself to accelerate DES, Triple-DES,
77bbc8551cSSam LefflerAES (7955 and 7956 only), ARC4, MD5,
78f4bf4335SSam LefflerMD5-HMAC, SHA1, and SHA1-HMAC operations for
79f4bf4335SSam Leffler.Xr ipsec 4
80f4bf4335SSam Lefflerand
81f4bf4335SSam Leffler.Xr crypto 4 .
82f4bf4335SSam Leffler.Pp
83bbc8551cSSam LefflerThe Hifn
84bbc8551cSSam Leffler.Tn 7951 ,
85bbc8551cSSam Leffler.Tn 7811 ,
86bbc8551cSSam Leffler.Tn 7955 ,
87f4bf4335SSam Lefflerand
88bbc8551cSSam Leffler.Tn 7956
89f4bf4335SSam Lefflerwill also supply data to the kernel
90f4bf4335SSam Leffler.Xr random 4
91f4bf4335SSam Lefflersubsystem.
92f4bf4335SSam Leffler.Sh BUGS
93f4bf4335SSam LefflerThe 7751 chip starts out at initialization by only supporting compression.
94f4bf4335SSam LefflerA proprietary algorithm, which has been reverse engineered, is required to
95f4bf4335SSam Lefflerunlock the cryptographic functionality of the chip.
96f4bf4335SSam LefflerIt is possible for vendors to make boards which have a lock ID not known
97f4bf4335SSam Lefflerto the driver, but all vendors currently just use the obvious ID which is
98f4bf4335SSam Leffler13 bytes of 0.
99f4bf4335SSam Leffler.Sh SEE ALSO
100f4bf4335SSam Leffler.Xr crypt 3 ,
101f4bf4335SSam Leffler.Xr crypto 4 ,
102f4bf4335SSam Leffler.Xr intro 4 ,
103f4bf4335SSam Leffler.Xr ipsec 4 ,
104f4bf4335SSam Leffler.Xr random 4 ,
105f4bf4335SSam Leffler.Xr crypto 9
106f4bf4335SSam Leffler.Sh CAVEATS
107a2931c09SRuslan ErmilovThe Hifn 9751 shares the same PCI ID.
108f4bf4335SSam LefflerThis chip is basically a 7751, but with the cryptographic functions missing.
109f4bf4335SSam LefflerInstead, the 9751 is only capable of doing compression.
110f4bf4335SSam LefflerSince we do not currently attempt to use any of these chips to do
111f4bf4335SSam Lefflercompression, the 9751-based cards are not useful.
112bbc8551cSSam Leffler.Pp
113bbc8551cSSam LefflerSupport for the 7955 and 7956 is incomplete; the asymetric crypto
114bbc8551cSSam Lefflerfacilities are to be added and the performance is suboptimal.
115f4bf4335SSam Leffler.Sh HISTORY
116f4bf4335SSam LefflerThe
117f4bf4335SSam Leffler.Nm
118f4bf4335SSam Lefflerdevice driver appeared in
119a2931c09SRuslan Ermilov.Ox 2.7 .
120f4bf4335SSam LefflerThe
121f4bf4335SSam Leffler.Nm
122a2931c09SRuslan Ermilovdevice driver was imported to
123a2931c09SRuslan Ermilov.Fx 5.0 .
124