1/*
2 * Copyright (c) 2011-12 Apple Inc. All Rights Reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24/*
25 * Copyright (c) 2009 Kungliga Tekniska Högskolan
26 * (Royal Institute of Technology, Stockholm, Sweden).
27 * All rights reserved.
28 *
29 * Redistribution and use in source and binary forms, with or without
30 * modification, are permitted provided that the following conditions
31 * are met:
32 *
33 * 1. Redistributions of source code must retain the above copyright
34 *    notice, this list of conditions and the following disclaimer.
35 *
36 * 2. Redistributions in binary form must reproduce the above copyright
37 *    notice, this list of conditions and the following disclaimer in the
38 *    documentation and/or other materials provided with the distribution.
39 *
40 * 3. Neither the name of the Institute nor the names of its contributors
41 *    may be used to endorse or promote products derived from this software
42 *    without specific prior written permission.
43 *
44 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
45 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47 * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
48 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
49 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
54 * SUCH DAMAGE.
55 */
56
57#ifndef _OSSL_EVP_CC_H_
58#define _OSSL_EVP_CC_H_			1
59
60/* symbol renaming */
61#define EVP_cc_md2			ossl_EVP_cc_md2
62#define EVP_cc_md4			ossl_EVP_cc_md4
63#define EVP_cc_md5			ossl_EVP_cc_md5
64#define EVP_cc_sha1			ossl_EVP_cc_sha1
65#define EVP_cc_sha224			ossl_EVP_cc_sha224
66#define EVP_cc_sha256			ossl_EVP_cc_sha256
67#define EVP_cc_sha384			ossl_EVP_cc_sha384
68#define EVP_cc_sha512			ossl_EVP_cc_sha512
69#define EVP_cc_rmd128			ossl_EVP_cc_rmd128
70#define EVP_cc_rmd160			ossl_EVP_cc_rmd160
71#define EVP_cc_rmd256			ossl_EVP_cc_rmd256
72#define EVP_cc_rmd320			ossl_EVP_cc_rmd320
73#define EVP_cc_des_cbc			ossl_EVP_cc_des_cbc
74#define EVP_cc_des_ecb			ossl_EVP_cc_des_ecb
75#define EVP_cc_des_ede3_cbc		ossl_EVP_cc_des_ede3_cbc
76#define EVP_cc_des_ede3_ecb		ossl_EVP_cc_des_ede3_ecb
77#define EVP_cc_aes_128_cbc		ossl_EVP_cc_aes_128_cbc
78#define EVP_cc_aes_128_ecb		ossl_EVP_cc_aes_128_ecb
79#define EVP_cc_aes_192_cbc		ossl_EVP_cc_aes_192_cbc
80#define EVP_cc_aes_192_ecb		ossl_EVP_cc_aes_192_ecb
81#define EVP_cc_aes_256_cbc		ossl_EVP_cc_aes_256_cbc
82#define EVP_cc_aes_256_ecb		ossl_EVP_cc_aes_256_ecb
83#define EVP_cc_aes_128_cfb8		ossl_EVP_cc_aes_128_cfb8
84#define EVP_cc_aes_192_cfb8		ossl_EVP_cc_aes_192_cfb8
85#define EVP_cc_aes_256_cfb8		ossl_EVP_cc_aes_256_cfb8
86#define EVP_cc_rc4			ossl_EVP_cc_rc4
87#define EVP_cc_rc4_40			ossl_EVP_cc_rc4_40
88#define EVP_cc_rc2_40_cbc		ossl_EVP_cc_rc2_40_cbc
89#define EVP_cc_rc2_64_cbc		ossl_EVP_cc_rc2_64_cbc
90#define EVP_cc_rc2_cbc			ossl_EVP_cc_rc2_cbc
91#define EVP_cc_camellia_128_cbc		ossl_EVP_cc_camellia_128_cbc
92#define EVP_cc_camellia_192_cbc		ossl_EVP_cc_camellia_192_cbc
93#define EVP_cc_camellia_256_cbc		ossl_EVP_cc_camellia_256_cbc
94#define EVP_cc_bf_cbc			ossl_EVP_cc_bf_cbc
95#define EVP_cc_bf_ecb			ossl_EVP_cc_bf_ecb
96#define EVP_cc_cast5_cbc		ossl_EVP_cc_cast5_cbc
97#define EVP_cc_cast5_ecb		ossl_EVP_cc_cast5_ecb
98
99/*
100 *
101 */
102
103
104const EVP_MD *EVP_cc_md2(void);
105const EVP_MD *EVP_cc_md4(void);
106const EVP_MD *EVP_cc_md5(void);
107const EVP_MD *EVP_cc_sha1(void);
108const EVP_MD *EVP_cc_sha224(void);
109const EVP_MD *EVP_cc_sha256(void);
110const EVP_MD *EVP_cc_sha384(void);
111const EVP_MD *EVP_cc_sha512(void);
112const EVP_MD *EVP_cc_rmd128(void);
113const EVP_MD *EVP_cc_rmd160(void);
114const EVP_MD *EVP_cc_rmd256(void);
115const EVP_MD *EVP_cc_rmd320(void);
116
117const EVP_CIPHER *EVP_cc_bf_cbc(void);
118const EVP_CIPHER *EVP_cc_bf_ecb(void);
119
120const EVP_CIPHER *EVP_cc_cast5_cbc(void);
121const EVP_CIPHER *EVP_cc_cast5_ecb(void);
122
123const EVP_CIPHER *EVP_cc_rc2_cbc(void);
124const EVP_CIPHER *EVP_cc_rc2_40_cbc(void);
125const EVP_CIPHER *EVP_cc_rc2_64_cbc(void);
126
127const EVP_CIPHER *EVP_cc_rc4(void);
128const EVP_CIPHER *EVP_cc_rc4_40(void);
129
130const EVP_CIPHER *EVP_cc_des_cbc(void);
131const EVP_CIPHER *EVP_cc_des_ecb(void);
132const EVP_CIPHER *EVP_cc_des_ede3_cbc(void);
133const EVP_CIPHER *EVP_cc_des_ede3_ecb(void);
134
135const EVP_CIPHER *EVP_cc_aes_128_cbc(void);
136const EVP_CIPHER *EVP_cc_aes_128_ecb(void);
137const EVP_CIPHER *EVP_cc_aes_192_cbc(void);
138const EVP_CIPHER *EVP_cc_aes_192_ecb(void);
139const EVP_CIPHER *EVP_cc_aes_256_cbc(void);
140const EVP_CIPHER *EVP_cc_aes_256_ecb(void);
141
142const EVP_CIPHER *EVP_cc_aes_128_cfb8(void);
143const EVP_CIPHER *EVP_cc_aes_192_cfb8(void);
144const EVP_CIPHER *EVP_cc_aes_256_cfb8(void);
145
146const EVP_CIPHER *EVP_cc_camellia_128_cbc(void);
147const EVP_CIPHER *EVP_cc_camellia_192_cbc(void);
148const EVP_CIPHER *EVP_cc_camellia_256_cbc(void);
149
150#endif /* _OSSL_EVP_CC_H_ */
151