Fix formatting error in pem.h
[openssl.git] / crypto / evp / evp_fips.c
1 /* crypto/evp/evp_fips.c */
2 /*
3  * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
4  * project.
5  */
6 /* ====================================================================
7  * Copyright (c) 2011 The OpenSSL Project.  All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  *
13  * 1. Redistributions of source code must retain the above copyright
14  *    notice, this list of conditions and the following disclaimer.
15  *
16  * 2. Redistributions in binary form must reproduce the above copyright
17  *    notice, this list of conditions and the following disclaimer in
18  *    the documentation and/or other materials provided with the
19  *    distribution.
20  *
21  * 3. All advertising materials mentioning features or use of this
22  *    software must display the following acknowledgment:
23  *    "This product includes software developed by the OpenSSL Project
24  *    for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
25  *
26  * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
27  *    endorse or promote products derived from this software without
28  *    prior written permission. For written permission, please contact
29  *    licensing@OpenSSL.org.
30  *
31  * 5. Products derived from this software may not be called "OpenSSL"
32  *    nor may "OpenSSL" appear in their names without prior written
33  *    permission of the OpenSSL Project.
34  *
35  * 6. Redistributions of any form whatsoever must retain the following
36  *    acknowledgment:
37  *    "This product includes software developed by the OpenSSL Project
38  *    for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
39  *
40  * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
41  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
43  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
44  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
46  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
47  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
49  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
50  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51  * OF THE POSSIBILITY OF SUCH DAMAGE.
52  * ====================================================================
53  */
54
55 #include <openssl/evp.h>
56
57 #ifdef OPENSSL_FIPS
58 # include <openssl/fips.h>
59
60 const EVP_CIPHER *EVP_aes_128_cbc(void)
61 {
62     return FIPS_evp_aes_128_cbc();
63 }
64
65 const EVP_CIPHER *EVP_aes_128_ccm(void)
66 {
67     return FIPS_evp_aes_128_ccm();
68 }
69
70 const EVP_CIPHER *EVP_aes_128_cfb1(void)
71 {
72     return FIPS_evp_aes_128_cfb1();
73 }
74
75 const EVP_CIPHER *EVP_aes_128_cfb128(void)
76 {
77     return FIPS_evp_aes_128_cfb128();
78 }
79
80 const EVP_CIPHER *EVP_aes_128_cfb8(void)
81 {
82     return FIPS_evp_aes_128_cfb8();
83 }
84
85 const EVP_CIPHER *EVP_aes_128_ctr(void)
86 {
87     return FIPS_evp_aes_128_ctr();
88 }
89
90 const EVP_CIPHER *EVP_aes_128_ecb(void)
91 {
92     return FIPS_evp_aes_128_ecb();
93 }
94
95 const EVP_CIPHER *EVP_aes_128_gcm(void)
96 {
97     return FIPS_evp_aes_128_gcm();
98 }
99
100 const EVP_CIPHER *EVP_aes_128_ofb(void)
101 {
102     return FIPS_evp_aes_128_ofb();
103 }
104
105 const EVP_CIPHER *EVP_aes_128_xts(void)
106 {
107     return FIPS_evp_aes_128_xts();
108 }
109
110 const EVP_CIPHER *EVP_aes_192_cbc(void)
111 {
112     return FIPS_evp_aes_192_cbc();
113 }
114
115 const EVP_CIPHER *EVP_aes_192_ccm(void)
116 {
117     return FIPS_evp_aes_192_ccm();
118 }
119
120 const EVP_CIPHER *EVP_aes_192_cfb1(void)
121 {
122     return FIPS_evp_aes_192_cfb1();
123 }
124
125 const EVP_CIPHER *EVP_aes_192_cfb128(void)
126 {
127     return FIPS_evp_aes_192_cfb128();
128 }
129
130 const EVP_CIPHER *EVP_aes_192_cfb8(void)
131 {
132     return FIPS_evp_aes_192_cfb8();
133 }
134
135 const EVP_CIPHER *EVP_aes_192_ctr(void)
136 {
137     return FIPS_evp_aes_192_ctr();
138 }
139
140 const EVP_CIPHER *EVP_aes_192_ecb(void)
141 {
142     return FIPS_evp_aes_192_ecb();
143 }
144
145 const EVP_CIPHER *EVP_aes_192_gcm(void)
146 {
147     return FIPS_evp_aes_192_gcm();
148 }
149
150 const EVP_CIPHER *EVP_aes_192_ofb(void)
151 {
152     return FIPS_evp_aes_192_ofb();
153 }
154
155 const EVP_CIPHER *EVP_aes_256_cbc(void)
156 {
157     return FIPS_evp_aes_256_cbc();
158 }
159
160 const EVP_CIPHER *EVP_aes_256_ccm(void)
161 {
162     return FIPS_evp_aes_256_ccm();
163 }
164
165 const EVP_CIPHER *EVP_aes_256_cfb1(void)
166 {
167     return FIPS_evp_aes_256_cfb1();
168 }
169
170 const EVP_CIPHER *EVP_aes_256_cfb128(void)
171 {
172     return FIPS_evp_aes_256_cfb128();
173 }
174
175 const EVP_CIPHER *EVP_aes_256_cfb8(void)
176 {
177     return FIPS_evp_aes_256_cfb8();
178 }
179
180 const EVP_CIPHER *EVP_aes_256_ctr(void)
181 {
182     return FIPS_evp_aes_256_ctr();
183 }
184
185 const EVP_CIPHER *EVP_aes_256_ecb(void)
186 {
187     return FIPS_evp_aes_256_ecb();
188 }
189
190 const EVP_CIPHER *EVP_aes_256_gcm(void)
191 {
192     return FIPS_evp_aes_256_gcm();
193 }
194
195 const EVP_CIPHER *EVP_aes_256_ofb(void)
196 {
197     return FIPS_evp_aes_256_ofb();
198 }
199
200 const EVP_CIPHER *EVP_aes_256_xts(void)
201 {
202     return FIPS_evp_aes_256_xts();
203 }
204
205 const EVP_CIPHER *EVP_des_ede(void)
206 {
207     return FIPS_evp_des_ede();
208 }
209
210 const EVP_CIPHER *EVP_des_ede3(void)
211 {
212     return FIPS_evp_des_ede3();
213 }
214
215 const EVP_CIPHER *EVP_des_ede3_cbc(void)
216 {
217     return FIPS_evp_des_ede3_cbc();
218 }
219
220 const EVP_CIPHER *EVP_des_ede3_cfb1(void)
221 {
222     return FIPS_evp_des_ede3_cfb1();
223 }
224
225 const EVP_CIPHER *EVP_des_ede3_cfb64(void)
226 {
227     return FIPS_evp_des_ede3_cfb64();
228 }
229
230 const EVP_CIPHER *EVP_des_ede3_cfb8(void)
231 {
232     return FIPS_evp_des_ede3_cfb8();
233 }
234
235 const EVP_CIPHER *EVP_des_ede3_ecb(void)
236 {
237     return FIPS_evp_des_ede3_ecb();
238 }
239
240 const EVP_CIPHER *EVP_des_ede3_ofb(void)
241 {
242     return FIPS_evp_des_ede3_ofb();
243 }
244
245 const EVP_CIPHER *EVP_des_ede_cbc(void)
246 {
247     return FIPS_evp_des_ede_cbc();
248 }
249
250 const EVP_CIPHER *EVP_des_ede_cfb64(void)
251 {
252     return FIPS_evp_des_ede_cfb64();
253 }
254
255 const EVP_CIPHER *EVP_des_ede_ecb(void)
256 {
257     return FIPS_evp_des_ede_ecb();
258 }
259
260 const EVP_CIPHER *EVP_des_ede_ofb(void)
261 {
262     return FIPS_evp_des_ede_ofb();
263 }
264
265 const EVP_CIPHER *EVP_enc_null(void)
266 {
267     return FIPS_evp_enc_null();
268 }
269
270 const EVP_MD *EVP_sha1(void)
271 {
272     return FIPS_evp_sha1();
273 }
274
275 const EVP_MD *EVP_sha224(void)
276 {
277     return FIPS_evp_sha224();
278 }
279
280 const EVP_MD *EVP_sha256(void)
281 {
282     return FIPS_evp_sha256();
283 }
284
285 const EVP_MD *EVP_sha384(void)
286 {
287     return FIPS_evp_sha384();
288 }
289
290 const EVP_MD *EVP_sha512(void)
291 {
292     return FIPS_evp_sha512();
293 }
294
295 const EVP_MD *EVP_dss(void)
296 {
297     return FIPS_evp_dss();
298 }
299
300 const EVP_MD *EVP_dss1(void)
301 {
302     return FIPS_evp_dss1();
303 }
304
305 const EVP_MD *EVP_ecdsa(void)
306 {
307     return FIPS_evp_ecdsa();
308 }
309
310 #endif