Re-enable IPv6 Debug Logging
[tomato.git] / release / src-rt-6.x.4708 / router / openssl / crypto / evp / evp_fips.c
blob71a32fca8d2ab2e4a28b52a932b4342f4745ccf0
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.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
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.
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/)"
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.
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.
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/)"
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 * ====================================================================
55 #include <openssl/evp.h>
57 #ifdef OPENSSL_FIPS
58 # include <openssl/fips.h>
60 const EVP_CIPHER *EVP_aes_128_cbc(void)
62 return FIPS_evp_aes_128_cbc();
65 const EVP_CIPHER *EVP_aes_128_ccm(void)
67 return FIPS_evp_aes_128_ccm();
70 const EVP_CIPHER *EVP_aes_128_cfb1(void)
72 return FIPS_evp_aes_128_cfb1();
75 const EVP_CIPHER *EVP_aes_128_cfb128(void)
77 return FIPS_evp_aes_128_cfb128();
80 const EVP_CIPHER *EVP_aes_128_cfb8(void)
82 return FIPS_evp_aes_128_cfb8();
85 const EVP_CIPHER *EVP_aes_128_ctr(void)
87 return FIPS_evp_aes_128_ctr();
90 const EVP_CIPHER *EVP_aes_128_ecb(void)
92 return FIPS_evp_aes_128_ecb();
95 const EVP_CIPHER *EVP_aes_128_gcm(void)
97 return FIPS_evp_aes_128_gcm();
100 const EVP_CIPHER *EVP_aes_128_ofb(void)
102 return FIPS_evp_aes_128_ofb();
105 const EVP_CIPHER *EVP_aes_128_xts(void)
107 return FIPS_evp_aes_128_xts();
110 const EVP_CIPHER *EVP_aes_192_cbc(void)
112 return FIPS_evp_aes_192_cbc();
115 const EVP_CIPHER *EVP_aes_192_ccm(void)
117 return FIPS_evp_aes_192_ccm();
120 const EVP_CIPHER *EVP_aes_192_cfb1(void)
122 return FIPS_evp_aes_192_cfb1();
125 const EVP_CIPHER *EVP_aes_192_cfb128(void)
127 return FIPS_evp_aes_192_cfb128();
130 const EVP_CIPHER *EVP_aes_192_cfb8(void)
132 return FIPS_evp_aes_192_cfb8();
135 const EVP_CIPHER *EVP_aes_192_ctr(void)
137 return FIPS_evp_aes_192_ctr();
140 const EVP_CIPHER *EVP_aes_192_ecb(void)
142 return FIPS_evp_aes_192_ecb();
145 const EVP_CIPHER *EVP_aes_192_gcm(void)
147 return FIPS_evp_aes_192_gcm();
150 const EVP_CIPHER *EVP_aes_192_ofb(void)
152 return FIPS_evp_aes_192_ofb();
155 const EVP_CIPHER *EVP_aes_256_cbc(void)
157 return FIPS_evp_aes_256_cbc();
160 const EVP_CIPHER *EVP_aes_256_ccm(void)
162 return FIPS_evp_aes_256_ccm();
165 const EVP_CIPHER *EVP_aes_256_cfb1(void)
167 return FIPS_evp_aes_256_cfb1();
170 const EVP_CIPHER *EVP_aes_256_cfb128(void)
172 return FIPS_evp_aes_256_cfb128();
175 const EVP_CIPHER *EVP_aes_256_cfb8(void)
177 return FIPS_evp_aes_256_cfb8();
180 const EVP_CIPHER *EVP_aes_256_ctr(void)
182 return FIPS_evp_aes_256_ctr();
185 const EVP_CIPHER *EVP_aes_256_ecb(void)
187 return FIPS_evp_aes_256_ecb();
190 const EVP_CIPHER *EVP_aes_256_gcm(void)
192 return FIPS_evp_aes_256_gcm();
195 const EVP_CIPHER *EVP_aes_256_ofb(void)
197 return FIPS_evp_aes_256_ofb();
200 const EVP_CIPHER *EVP_aes_256_xts(void)
202 return FIPS_evp_aes_256_xts();
205 const EVP_CIPHER *EVP_des_ede(void)
207 return FIPS_evp_des_ede();
210 const EVP_CIPHER *EVP_des_ede3(void)
212 return FIPS_evp_des_ede3();
215 const EVP_CIPHER *EVP_des_ede3_cbc(void)
217 return FIPS_evp_des_ede3_cbc();
220 const EVP_CIPHER *EVP_des_ede3_cfb1(void)
222 return FIPS_evp_des_ede3_cfb1();
225 const EVP_CIPHER *EVP_des_ede3_cfb64(void)
227 return FIPS_evp_des_ede3_cfb64();
230 const EVP_CIPHER *EVP_des_ede3_cfb8(void)
232 return FIPS_evp_des_ede3_cfb8();
235 const EVP_CIPHER *EVP_des_ede3_ecb(void)
237 return FIPS_evp_des_ede3_ecb();
240 const EVP_CIPHER *EVP_des_ede3_ofb(void)
242 return FIPS_evp_des_ede3_ofb();
245 const EVP_CIPHER *EVP_des_ede_cbc(void)
247 return FIPS_evp_des_ede_cbc();
250 const EVP_CIPHER *EVP_des_ede_cfb64(void)
252 return FIPS_evp_des_ede_cfb64();
255 const EVP_CIPHER *EVP_des_ede_ecb(void)
257 return FIPS_evp_des_ede_ecb();
260 const EVP_CIPHER *EVP_des_ede_ofb(void)
262 return FIPS_evp_des_ede_ofb();
265 const EVP_CIPHER *EVP_enc_null(void)
267 return FIPS_evp_enc_null();
270 const EVP_MD *EVP_sha1(void)
272 return FIPS_evp_sha1();
275 const EVP_MD *EVP_sha224(void)
277 return FIPS_evp_sha224();
280 const EVP_MD *EVP_sha256(void)
282 return FIPS_evp_sha256();
285 const EVP_MD *EVP_sha384(void)
287 return FIPS_evp_sha384();
290 const EVP_MD *EVP_sha512(void)
292 return FIPS_evp_sha512();
295 const EVP_MD *EVP_dss(void)
297 return FIPS_evp_dss();
300 const EVP_MD *EVP_dss1(void)
302 return FIPS_evp_dss1();
305 const EVP_MD *EVP_ecdsa(void)
307 return FIPS_evp_ecdsa();
310 #endif