]>
git.saurik.com Git - apple/xnu.git/blob - bsd/crypto/des/spr.h
21dea800cd61016560f52d53e8861b3433c28fb8
1 /* $FreeBSD: src/sys/crypto/des/spr.h,v 1.1.2.1 2000/07/15 07:14:22 kris Exp $ */
2 /* $KAME: spr.h,v 1.3 2000/03/27 04:36:35 sumikawa Exp $ */
5 /* Copyright (C) 1995-1996 Eric Young (eay@mincom.oz.au)
8 * This file is part of an SSL implementation written
9 * by Eric Young (eay@mincom.oz.au).
10 * The implementation was written so as to conform with Netscapes SSL
11 * specification. This library and applications are
12 * FREE FOR COMMERCIAL AND NON-COMMERCIAL USE
13 * as long as the following conditions are aheared to.
15 * Copyright remains Eric Young's, and as such any Copyright notices in
16 * the code are not to be removed. If this code is used in a product,
17 * Eric Young should be given attribution as the author of the parts used.
18 * This can be in the form of a textual message at program startup or
19 * in documentation (online or textual) provided with the package.
21 * Redistribution and use in source and binary forms, with or without
22 * modification, are permitted provided that the following conditions
24 * 1. Redistributions of source code must retain the copyright
25 * notice, this list of conditions and the following disclaimer.
26 * 2. Redistributions in binary form must reproduce the above copyright
27 * notice, this list of conditions and the following disclaimer in the
28 * documentation and/or other materials provided with the distribution.
29 * 3. All advertising materials mentioning features or use of this software
30 * must display the following acknowledgement:
31 * This product includes software developed by Eric Young (eay@mincom.oz.au)
33 * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
34 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
35 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
36 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
37 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
38 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
39 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
40 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
41 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
42 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45 * The licence and distribution terms for any publically available version or
46 * derivative of this code cannot be changed. i.e. this code cannot simply be
47 * copied and put under another distribution licence
48 * [including the GNU Public Licence.]
51 static const DES_LONG des_SPtrans
[8][64]={
54 0x00820200L
, 0x00020000L
, 0x80800000L
, 0x80820200L
,
55 0x00800000L
, 0x80020200L
, 0x80020000L
, 0x80800000L
,
56 0x80020200L
, 0x00820200L
, 0x00820000L
, 0x80000200L
,
57 0x80800200L
, 0x00800000L
, 0x00000000L
, 0x80020000L
,
58 0x00020000L
, 0x80000000L
, 0x00800200L
, 0x00020200L
,
59 0x80820200L
, 0x00820000L
, 0x80000200L
, 0x00800200L
,
60 0x80000000L
, 0x00000200L
, 0x00020200L
, 0x80820000L
,
61 0x00000200L
, 0x80800200L
, 0x80820000L
, 0x00000000L
,
62 0x00000000L
, 0x80820200L
, 0x00800200L
, 0x80020000L
,
63 0x00820200L
, 0x00020000L
, 0x80000200L
, 0x00800200L
,
64 0x80820000L
, 0x00000200L
, 0x00020200L
, 0x80800000L
,
65 0x80020200L
, 0x80000000L
, 0x80800000L
, 0x00820000L
,
66 0x80820200L
, 0x00020200L
, 0x00820000L
, 0x80800200L
,
67 0x00800000L
, 0x80000200L
, 0x80020000L
, 0x00000000L
,
68 0x00020000L
, 0x00800000L
, 0x80800200L
, 0x00820200L
,
69 0x80000000L
, 0x80820000L
, 0x00000200L
, 0x80020200L
,
72 0x10042004L
, 0x00000000L
, 0x00042000L
, 0x10040000L
,
73 0x10000004L
, 0x00002004L
, 0x10002000L
, 0x00042000L
,
74 0x00002000L
, 0x10040004L
, 0x00000004L
, 0x10002000L
,
75 0x00040004L
, 0x10042000L
, 0x10040000L
, 0x00000004L
,
76 0x00040000L
, 0x10002004L
, 0x10040004L
, 0x00002000L
,
77 0x00042004L
, 0x10000000L
, 0x00000000L
, 0x00040004L
,
78 0x10002004L
, 0x00042004L
, 0x10042000L
, 0x10000004L
,
79 0x10000000L
, 0x00040000L
, 0x00002004L
, 0x10042004L
,
80 0x00040004L
, 0x10042000L
, 0x10002000L
, 0x00042004L
,
81 0x10042004L
, 0x00040004L
, 0x10000004L
, 0x00000000L
,
82 0x10000000L
, 0x00002004L
, 0x00040000L
, 0x10040004L
,
83 0x00002000L
, 0x10000000L
, 0x00042004L
, 0x10002004L
,
84 0x10042000L
, 0x00002000L
, 0x00000000L
, 0x10000004L
,
85 0x00000004L
, 0x10042004L
, 0x00042000L
, 0x10040000L
,
86 0x10040004L
, 0x00040000L
, 0x00002004L
, 0x10002000L
,
87 0x10002004L
, 0x00000004L
, 0x10040000L
, 0x00042000L
,
90 0x41000000L
, 0x01010040L
, 0x00000040L
, 0x41000040L
,
91 0x40010000L
, 0x01000000L
, 0x41000040L
, 0x00010040L
,
92 0x01000040L
, 0x00010000L
, 0x01010000L
, 0x40000000L
,
93 0x41010040L
, 0x40000040L
, 0x40000000L
, 0x41010000L
,
94 0x00000000L
, 0x40010000L
, 0x01010040L
, 0x00000040L
,
95 0x40000040L
, 0x41010040L
, 0x00010000L
, 0x41000000L
,
96 0x41010000L
, 0x01000040L
, 0x40010040L
, 0x01010000L
,
97 0x00010040L
, 0x00000000L
, 0x01000000L
, 0x40010040L
,
98 0x01010040L
, 0x00000040L
, 0x40000000L
, 0x00010000L
,
99 0x40000040L
, 0x40010000L
, 0x01010000L
, 0x41000040L
,
100 0x00000000L
, 0x01010040L
, 0x00010040L
, 0x41010000L
,
101 0x40010000L
, 0x01000000L
, 0x41010040L
, 0x40000000L
,
102 0x40010040L
, 0x41000000L
, 0x01000000L
, 0x41010040L
,
103 0x00010000L
, 0x01000040L
, 0x41000040L
, 0x00010040L
,
104 0x01000040L
, 0x00000000L
, 0x41010000L
, 0x40000040L
,
105 0x41000000L
, 0x40010040L
, 0x00000040L
, 0x01010000L
,
108 0x00100402L
, 0x04000400L
, 0x00000002L
, 0x04100402L
,
109 0x00000000L
, 0x04100000L
, 0x04000402L
, 0x00100002L
,
110 0x04100400L
, 0x04000002L
, 0x04000000L
, 0x00000402L
,
111 0x04000002L
, 0x00100402L
, 0x00100000L
, 0x04000000L
,
112 0x04100002L
, 0x00100400L
, 0x00000400L
, 0x00000002L
,
113 0x00100400L
, 0x04000402L
, 0x04100000L
, 0x00000400L
,
114 0x00000402L
, 0x00000000L
, 0x00100002L
, 0x04100400L
,
115 0x04000400L
, 0x04100002L
, 0x04100402L
, 0x00100000L
,
116 0x04100002L
, 0x00000402L
, 0x00100000L
, 0x04000002L
,
117 0x00100400L
, 0x04000400L
, 0x00000002L
, 0x04100000L
,
118 0x04000402L
, 0x00000000L
, 0x00000400L
, 0x00100002L
,
119 0x00000000L
, 0x04100002L
, 0x04100400L
, 0x00000400L
,
120 0x04000000L
, 0x04100402L
, 0x00100402L
, 0x00100000L
,
121 0x04100402L
, 0x00000002L
, 0x04000400L
, 0x00100402L
,
122 0x00100002L
, 0x00100400L
, 0x04100000L
, 0x04000402L
,
123 0x00000402L
, 0x04000000L
, 0x04000002L
, 0x04100400L
,
126 0x02000000L
, 0x00004000L
, 0x00000100L
, 0x02004108L
,
127 0x02004008L
, 0x02000100L
, 0x00004108L
, 0x02004000L
,
128 0x00004000L
, 0x00000008L
, 0x02000008L
, 0x00004100L
,
129 0x02000108L
, 0x02004008L
, 0x02004100L
, 0x00000000L
,
130 0x00004100L
, 0x02000000L
, 0x00004008L
, 0x00000108L
,
131 0x02000100L
, 0x00004108L
, 0x00000000L
, 0x02000008L
,
132 0x00000008L
, 0x02000108L
, 0x02004108L
, 0x00004008L
,
133 0x02004000L
, 0x00000100L
, 0x00000108L
, 0x02004100L
,
134 0x02004100L
, 0x02000108L
, 0x00004008L
, 0x02004000L
,
135 0x00004000L
, 0x00000008L
, 0x02000008L
, 0x02000100L
,
136 0x02000000L
, 0x00004100L
, 0x02004108L
, 0x00000000L
,
137 0x00004108L
, 0x02000000L
, 0x00000100L
, 0x00004008L
,
138 0x02000108L
, 0x00000100L
, 0x00000000L
, 0x02004108L
,
139 0x02004008L
, 0x02004100L
, 0x00000108L
, 0x00004000L
,
140 0x00004100L
, 0x02004008L
, 0x02000100L
, 0x00000108L
,
141 0x00000008L
, 0x00004108L
, 0x02004000L
, 0x02000008L
,
144 0x20000010L
, 0x00080010L
, 0x00000000L
, 0x20080800L
,
145 0x00080010L
, 0x00000800L
, 0x20000810L
, 0x00080000L
,
146 0x00000810L
, 0x20080810L
, 0x00080800L
, 0x20000000L
,
147 0x20000800L
, 0x20000010L
, 0x20080000L
, 0x00080810L
,
148 0x00080000L
, 0x20000810L
, 0x20080010L
, 0x00000000L
,
149 0x00000800L
, 0x00000010L
, 0x20080800L
, 0x20080010L
,
150 0x20080810L
, 0x20080000L
, 0x20000000L
, 0x00000810L
,
151 0x00000010L
, 0x00080800L
, 0x00080810L
, 0x20000800L
,
152 0x00000810L
, 0x20000000L
, 0x20000800L
, 0x00080810L
,
153 0x20080800L
, 0x00080010L
, 0x00000000L
, 0x20000800L
,
154 0x20000000L
, 0x00000800L
, 0x20080010L
, 0x00080000L
,
155 0x00080010L
, 0x20080810L
, 0x00080800L
, 0x00000010L
,
156 0x20080810L
, 0x00080800L
, 0x00080000L
, 0x20000810L
,
157 0x20000010L
, 0x20080000L
, 0x00080810L
, 0x00000000L
,
158 0x00000800L
, 0x20000010L
, 0x20000810L
, 0x20080800L
,
159 0x20080000L
, 0x00000810L
, 0x00000010L
, 0x20080010L
,
162 0x00001000L
, 0x00000080L
, 0x00400080L
, 0x00400001L
,
163 0x00401081L
, 0x00001001L
, 0x00001080L
, 0x00000000L
,
164 0x00400000L
, 0x00400081L
, 0x00000081L
, 0x00401000L
,
165 0x00000001L
, 0x00401080L
, 0x00401000L
, 0x00000081L
,
166 0x00400081L
, 0x00001000L
, 0x00001001L
, 0x00401081L
,
167 0x00000000L
, 0x00400080L
, 0x00400001L
, 0x00001080L
,
168 0x00401001L
, 0x00001081L
, 0x00401080L
, 0x00000001L
,
169 0x00001081L
, 0x00401001L
, 0x00000080L
, 0x00400000L
,
170 0x00001081L
, 0x00401000L
, 0x00401001L
, 0x00000081L
,
171 0x00001000L
, 0x00000080L
, 0x00400000L
, 0x00401001L
,
172 0x00400081L
, 0x00001081L
, 0x00001080L
, 0x00000000L
,
173 0x00000080L
, 0x00400001L
, 0x00000001L
, 0x00400080L
,
174 0x00000000L
, 0x00400081L
, 0x00400080L
, 0x00001080L
,
175 0x00000081L
, 0x00001000L
, 0x00401081L
, 0x00400000L
,
176 0x00401080L
, 0x00000001L
, 0x00001001L
, 0x00401081L
,
177 0x00400001L
, 0x00401080L
, 0x00401000L
, 0x00001001L
,
180 0x08200020L
, 0x08208000L
, 0x00008020L
, 0x00000000L
,
181 0x08008000L
, 0x00200020L
, 0x08200000L
, 0x08208020L
,
182 0x00000020L
, 0x08000000L
, 0x00208000L
, 0x00008020L
,
183 0x00208020L
, 0x08008020L
, 0x08000020L
, 0x08200000L
,
184 0x00008000L
, 0x00208020L
, 0x00200020L
, 0x08008000L
,
185 0x08208020L
, 0x08000020L
, 0x00000000L
, 0x00208000L
,
186 0x08000000L
, 0x00200000L
, 0x08008020L
, 0x08200020L
,
187 0x00200000L
, 0x00008000L
, 0x08208000L
, 0x00000020L
,
188 0x00200000L
, 0x00008000L
, 0x08000020L
, 0x08208020L
,
189 0x00008020L
, 0x08000000L
, 0x00000000L
, 0x00208000L
,
190 0x08200020L
, 0x08008020L
, 0x08008000L
, 0x00200020L
,
191 0x08208000L
, 0x00000020L
, 0x00200020L
, 0x08008000L
,
192 0x08208020L
, 0x00200000L
, 0x08200000L
, 0x08000020L
,
193 0x00208000L
, 0x00008020L
, 0x08008020L
, 0x08200000L
,
194 0x00000020L
, 0x08208000L
, 0x00208020L
, 0x00000000L
,
195 0x08000000L
, 0x08200020L
, 0x00008000L
, 0x00208020L
,