Commit | Line | Data |
---|---|---|
d7ab1bab | 1 | /* algorithms.h [generated] */ |
2 | ||
3 | #include <catacomb/des.h> | |
4 | #include <catacomb/des-ecb.h> | |
5 | #include <catacomb/des-cbc.h> | |
6 | #include <catacomb/des-cfb.h> | |
7 | #include <catacomb/des-ofb.h> | |
8 | #include <catacomb/des-counter.h> | |
9 | #include <catacomb/desx.h> | |
10 | #include <catacomb/desx-ecb.h> | |
11 | #include <catacomb/desx-cbc.h> | |
12 | #include <catacomb/desx-cfb.h> | |
13 | #include <catacomb/desx-ofb.h> | |
14 | #include <catacomb/desx-counter.h> | |
15 | #include <catacomb/des3.h> | |
16 | #include <catacomb/des3-ecb.h> | |
17 | #include <catacomb/des3-cbc.h> | |
18 | #include <catacomb/des3-cfb.h> | |
19 | #include <catacomb/des3-ofb.h> | |
20 | #include <catacomb/des3-counter.h> | |
21 | #include <catacomb/mars.h> | |
22 | #include <catacomb/mars-ecb.h> | |
23 | #include <catacomb/mars-cbc.h> | |
24 | #include <catacomb/mars-cfb.h> | |
25 | #include <catacomb/mars-ofb.h> | |
26 | #include <catacomb/mars-counter.h> | |
27 | #include <catacomb/idea.h> | |
28 | #include <catacomb/idea-ecb.h> | |
29 | #include <catacomb/idea-cbc.h> | |
30 | #include <catacomb/idea-cfb.h> | |
31 | #include <catacomb/idea-ofb.h> | |
32 | #include <catacomb/idea-counter.h> | |
33 | #include <catacomb/safer.h> | |
34 | #include <catacomb/safer-ecb.h> | |
35 | #include <catacomb/safer-cbc.h> | |
36 | #include <catacomb/safer-cfb.h> | |
37 | #include <catacomb/safer-ofb.h> | |
38 | #include <catacomb/safer-counter.h> | |
39 | #include <catacomb/safersk.h> | |
40 | #include <catacomb/safersk-ecb.h> | |
41 | #include <catacomb/safersk-cbc.h> | |
42 | #include <catacomb/safersk-cfb.h> | |
43 | #include <catacomb/safersk-ofb.h> | |
44 | #include <catacomb/safersk-counter.h> | |
45 | #include <catacomb/blowfish.h> | |
46 | #include <catacomb/blowfish-ecb.h> | |
47 | #include <catacomb/blowfish-cbc.h> | |
48 | #include <catacomb/blowfish-cfb.h> | |
49 | #include <catacomb/blowfish-ofb.h> | |
50 | #include <catacomb/blowfish-counter.h> | |
51 | #include <catacomb/twofish.h> | |
52 | #include <catacomb/twofish-ecb.h> | |
53 | #include <catacomb/twofish-cbc.h> | |
54 | #include <catacomb/twofish-cfb.h> | |
55 | #include <catacomb/twofish-ofb.h> | |
56 | #include <catacomb/twofish-counter.h> | |
57 | #include <catacomb/tea.h> | |
58 | #include <catacomb/tea-ecb.h> | |
59 | #include <catacomb/tea-cbc.h> | |
60 | #include <catacomb/tea-cfb.h> | |
61 | #include <catacomb/tea-ofb.h> | |
62 | #include <catacomb/tea-counter.h> | |
63 | #include <catacomb/xtea.h> | |
64 | #include <catacomb/xtea-ecb.h> | |
65 | #include <catacomb/xtea-cbc.h> | |
66 | #include <catacomb/xtea-cfb.h> | |
67 | #include <catacomb/xtea-ofb.h> | |
68 | #include <catacomb/xtea-counter.h> | |
69 | #include <catacomb/rc2.h> | |
70 | #include <catacomb/rc2-ecb.h> | |
71 | #include <catacomb/rc2-cbc.h> | |
72 | #include <catacomb/rc2-cfb.h> | |
73 | #include <catacomb/rc2-ofb.h> | |
74 | #include <catacomb/rc2-counter.h> | |
75 | #include <catacomb/rc5.h> | |
76 | #include <catacomb/rc5-ecb.h> | |
77 | #include <catacomb/rc5-cbc.h> | |
78 | #include <catacomb/rc5-cfb.h> | |
79 | #include <catacomb/rc5-ofb.h> | |
80 | #include <catacomb/rc5-counter.h> | |
81 | #include <catacomb/skipjack.h> | |
82 | #include <catacomb/skipjack-ecb.h> | |
83 | #include <catacomb/skipjack-cbc.h> | |
84 | #include <catacomb/skipjack-cfb.h> | |
85 | #include <catacomb/skipjack-ofb.h> | |
86 | #include <catacomb/skipjack-counter.h> | |
87 | #include <catacomb/cast128.h> | |
88 | #include <catacomb/cast128-ecb.h> | |
89 | #include <catacomb/cast128-cbc.h> | |
90 | #include <catacomb/cast128-cfb.h> | |
91 | #include <catacomb/cast128-ofb.h> | |
92 | #include <catacomb/cast128-counter.h> | |
93 | #include <catacomb/cast256.h> | |
94 | #include <catacomb/cast256-ecb.h> | |
95 | #include <catacomb/cast256-cbc.h> | |
96 | #include <catacomb/cast256-cfb.h> | |
97 | #include <catacomb/cast256-ofb.h> | |
98 | #include <catacomb/cast256-counter.h> | |
99 | #include <catacomb/square.h> | |
100 | #include <catacomb/square-ecb.h> | |
101 | #include <catacomb/square-cbc.h> | |
102 | #include <catacomb/square-cfb.h> | |
103 | #include <catacomb/square-ofb.h> | |
104 | #include <catacomb/square-counter.h> | |
105 | #include <catacomb/rijndael.h> | |
106 | #include <catacomb/rijndael-ecb.h> | |
107 | #include <catacomb/rijndael-cbc.h> | |
108 | #include <catacomb/rijndael-cfb.h> | |
109 | #include <catacomb/rijndael-ofb.h> | |
110 | #include <catacomb/rijndael-counter.h> | |
111 | #include <catacomb/rijndael192.h> | |
112 | #include <catacomb/rijndael192-ecb.h> | |
113 | #include <catacomb/rijndael192-cbc.h> | |
114 | #include <catacomb/rijndael192-cfb.h> | |
115 | #include <catacomb/rijndael192-ofb.h> | |
116 | #include <catacomb/rijndael192-counter.h> | |
117 | #include <catacomb/rijndael256.h> | |
118 | #include <catacomb/rijndael256-ecb.h> | |
119 | #include <catacomb/rijndael256-cbc.h> | |
120 | #include <catacomb/rijndael256-cfb.h> | |
121 | #include <catacomb/rijndael256-ofb.h> | |
122 | #include <catacomb/rijndael256-counter.h> | |
123 | #include <catacomb/serpent.h> | |
124 | #include <catacomb/serpent-ecb.h> | |
125 | #include <catacomb/serpent-cbc.h> | |
126 | #include <catacomb/serpent-cfb.h> | |
127 | #include <catacomb/serpent-ofb.h> | |
128 | #include <catacomb/serpent-counter.h> | |
129 | #include <catacomb/noekeon.h> | |
130 | #include <catacomb/noekeon-ecb.h> | |
131 | #include <catacomb/noekeon-cbc.h> | |
132 | #include <catacomb/noekeon-cfb.h> | |
133 | #include <catacomb/noekeon-ofb.h> | |
134 | #include <catacomb/noekeon-counter.h> | |
135 | #include <catacomb/rc4.h> | |
136 | #include <catacomb/seal.h> | |
137 | ||
138 | #include <catacomb/md2.h> | |
139 | #include <catacomb/md2-mgf.h> | |
140 | #include <catacomb/md2-hmac.h> | |
141 | #include <catacomb/md4.h> | |
142 | #include <catacomb/md4-mgf.h> | |
143 | #include <catacomb/md4-hmac.h> | |
144 | #include <catacomb/md5.h> | |
145 | #include <catacomb/md5-mgf.h> | |
146 | #include <catacomb/md5-hmac.h> | |
147 | #include <catacomb/tiger.h> | |
148 | #include <catacomb/tiger-mgf.h> | |
149 | #include <catacomb/tiger-hmac.h> | |
150 | #include <catacomb/has160.h> | |
151 | #include <catacomb/has160-mgf.h> | |
152 | #include <catacomb/has160-hmac.h> | |
153 | #include <catacomb/sha.h> | |
154 | #include <catacomb/sha-mgf.h> | |
155 | #include <catacomb/sha-hmac.h> | |
156 | #include <catacomb/sha224.h> | |
157 | #include <catacomb/sha224-mgf.h> | |
158 | #include <catacomb/sha224-hmac.h> | |
159 | #include <catacomb/sha256.h> | |
160 | #include <catacomb/sha256-mgf.h> | |
161 | #include <catacomb/sha256-hmac.h> | |
162 | #include <catacomb/sha384.h> | |
163 | #include <catacomb/sha384-mgf.h> | |
164 | #include <catacomb/sha384-hmac.h> | |
165 | #include <catacomb/sha512.h> | |
166 | #include <catacomb/sha512-mgf.h> | |
167 | #include <catacomb/sha512-hmac.h> | |
168 | #include <catacomb/rmd128.h> | |
169 | #include <catacomb/rmd128-mgf.h> | |
170 | #include <catacomb/rmd128-hmac.h> | |
171 | #include <catacomb/rmd160.h> | |
172 | #include <catacomb/rmd160-mgf.h> | |
173 | #include <catacomb/rmd160-hmac.h> | |
174 | #include <catacomb/rmd256.h> | |
175 | #include <catacomb/rmd256-mgf.h> | |
176 | #include <catacomb/rmd256-hmac.h> | |
177 | #include <catacomb/rmd320.h> | |
178 | #include <catacomb/rmd320-mgf.h> | |
179 | #include <catacomb/rmd320-hmac.h> | |
180 | #include <catacomb/whirlpool.h> | |
181 | #include <catacomb/whirlpool-mgf.h> | |
182 | #include <catacomb/whirlpool-hmac.h> | |
183 | #include <catacomb/whirlpool256.h> | |
184 | #include <catacomb/whirlpool256-mgf.h> | |
185 | #include <catacomb/whirlpool256-hmac.h> | |
186 | ||
03ed9abb MW |
187 | #define PRPS(_) \ |
188 | _(DES, des) \ | |
189 | _(DESX, desx) \ | |
190 | _(DES3, des3) \ | |
191 | _(MARS, mars) \ | |
192 | _(IDEA, idea) \ | |
193 | _(SAFER, safer) \ | |
194 | _(SAFERSK, safersk) \ | |
195 | _(BLOWFISH, blowfish) \ | |
196 | _(TWOFISH, twofish) \ | |
197 | _(TEA, tea) \ | |
198 | _(XTEA, xtea) \ | |
199 | _(RC2, rc2) \ | |
200 | _(RC5, rc5) \ | |
201 | _(SKIPJACK, skipjack) \ | |
202 | _(CAST128, cast128) \ | |
203 | _(CAST256, cast256) \ | |
204 | _(SQUARE, square) \ | |
205 | _(RIJNDAEL, rijndael) \ | |
206 | _(RIJNDAEL192, rijndael192) \ | |
207 | _(RIJNDAEL256, rijndael256) \ | |
208 | _(SERPENT, serpent) \ | |
209 | _(NOEKEON, noekeon) \ | |
d7ab1bab | 210 | /* end */ |
211 | ||
03ed9abb MW |
212 | #define RNGF_INT 1u |
213 | ||
214 | #define RNGS(_) \ | |
215 | _("des-ofb", des_keysz, des_ofbrand, 0) \ | |
216 | _("des-counter", des_keysz, des_counterrand, 0) \ | |
217 | _("desx-ofb", desx_keysz, desx_ofbrand, 0) \ | |
218 | _("desx-counter", desx_keysz, desx_counterrand, 0) \ | |
219 | _("des3-ofb", des3_keysz, des3_ofbrand, 0) \ | |
220 | _("des3-counter", des3_keysz, des3_counterrand, 0) \ | |
221 | _("mars-ofb", mars_keysz, mars_ofbrand, 0) \ | |
222 | _("mars-counter", mars_keysz, mars_counterrand, 0) \ | |
223 | _("idea-ofb", idea_keysz, idea_ofbrand, 0) \ | |
224 | _("idea-counter", idea_keysz, idea_counterrand, 0) \ | |
225 | _("safer-ofb", safer_keysz, safer_ofbrand, 0) \ | |
226 | _("safer-counter", safer_keysz, safer_counterrand, 0) \ | |
227 | _("safersk-ofb", safersk_keysz, safersk_ofbrand, 0) \ | |
228 | _("safersk-counter", safersk_keysz, safersk_counterrand, 0) \ | |
229 | _("blowfish-ofb", blowfish_keysz, blowfish_ofbrand, 0) \ | |
230 | _("blowfish-counter", blowfish_keysz, blowfish_counterrand, 0) \ | |
231 | _("twofish-ofb", twofish_keysz, twofish_ofbrand, 0) \ | |
232 | _("twofish-counter", twofish_keysz, twofish_counterrand, 0) \ | |
233 | _("tea-ofb", tea_keysz, tea_ofbrand, 0) \ | |
234 | _("tea-counter", tea_keysz, tea_counterrand, 0) \ | |
235 | _("xtea-ofb", xtea_keysz, xtea_ofbrand, 0) \ | |
236 | _("xtea-counter", xtea_keysz, xtea_counterrand, 0) \ | |
237 | _("rc2-ofb", rc2_keysz, rc2_ofbrand, 0) \ | |
238 | _("rc2-counter", rc2_keysz, rc2_counterrand, 0) \ | |
239 | _("rc5-ofb", rc5_keysz, rc5_ofbrand, 0) \ | |
240 | _("rc5-counter", rc5_keysz, rc5_counterrand, 0) \ | |
241 | _("skipjack-ofb", skipjack_keysz, skipjack_ofbrand, 0) \ | |
242 | _("skipjack-counter", skipjack_keysz, skipjack_counterrand, 0) \ | |
243 | _("cast128-ofb", cast128_keysz, cast128_ofbrand, 0) \ | |
244 | _("cast128-counter", cast128_keysz, cast128_counterrand, 0) \ | |
245 | _("cast256-ofb", cast256_keysz, cast256_ofbrand, 0) \ | |
246 | _("cast256-counter", cast256_keysz, cast256_counterrand, 0) \ | |
247 | _("square-ofb", square_keysz, square_ofbrand, 0) \ | |
248 | _("square-counter", square_keysz, square_counterrand, 0) \ | |
249 | _("rijndael-ofb", rijndael_keysz, rijndael_ofbrand, 0) \ | |
250 | _("rijndael-counter", rijndael_keysz, rijndael_counterrand, 0) \ | |
251 | _("rijndael192-ofb", rijndael192_keysz, rijndael192_ofbrand, 0) \ | |
252 | _("rijndael192-counter", rijndael192_keysz, rijndael192_counterrand, 0) \ | |
253 | _("rijndael256-ofb", rijndael256_keysz, rijndael256_ofbrand, 0) \ | |
254 | _("rijndael256-counter", rijndael256_keysz, rijndael256_counterrand, 0) \ | |
255 | _("serpent-ofb", serpent_keysz, serpent_ofbrand, 0) \ | |
256 | _("serpent-counter", serpent_keysz, serpent_counterrand, 0) \ | |
257 | _("noekeon-ofb", noekeon_keysz, noekeon_ofbrand, 0) \ | |
258 | _("noekeon-counter", noekeon_keysz, noekeon_counterrand, 0) \ | |
259 | _("md2-mgf", md2_mgfkeysz, md2_mgfrand, 0) \ | |
260 | _("md4-mgf", md4_mgfkeysz, md4_mgfrand, 0) \ | |
261 | _("md5-mgf", md5_mgfkeysz, md5_mgfrand, 0) \ | |
262 | _("tiger-mgf", tiger_mgfkeysz, tiger_mgfrand, 0) \ | |
263 | _("has160-mgf", has160_mgfkeysz, has160_mgfrand, 0) \ | |
264 | _("sha-mgf", sha_mgfkeysz, sha_mgfrand, 0) \ | |
265 | _("sha224-mgf", sha224_mgfkeysz, sha224_mgfrand, 0) \ | |
266 | _("sha256-mgf", sha256_mgfkeysz, sha256_mgfrand, 0) \ | |
267 | _("sha384-mgf", sha384_mgfkeysz, sha384_mgfrand, 0) \ | |
268 | _("sha512-mgf", sha512_mgfkeysz, sha512_mgfrand, 0) \ | |
269 | _("rmd128-mgf", rmd128_mgfkeysz, rmd128_mgfrand, 0) \ | |
270 | _("rmd160-mgf", rmd160_mgfkeysz, rmd160_mgfrand, 0) \ | |
271 | _("rmd256-mgf", rmd256_mgfkeysz, rmd256_mgfrand, 0) \ | |
272 | _("rmd320-mgf", rmd320_mgfkeysz, rmd320_mgfrand, 0) \ | |
273 | _("whirlpool-mgf", whirlpool_mgfkeysz, whirlpool_mgfrand, 0) \ | |
274 | _("whirlpool256-mgf", whirlpool256_mgfkeysz, whirlpool256_mgfrand, 0) \ | |
275 | _("rc4", rc4_keysz, rc4_rand, 0) \ | |
276 | _("seal", seal_keysz, seal_rand, RNGF_INT) \ | |
d7ab1bab | 277 | /* end */ |
278 |