xref: /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.h (revision afab4e300d3a9fb07dd8c80daf53d0feb3345706)
1*afab4e30Schristos /*	$NetBSD: evp-wincng.h,v 1.3 2023/06/19 21:41:43 christos Exp $	*/
2b9d004c6Schristos 
3b9d004c6Schristos /*
4b9d004c6Schristos  * Copyright (c) 2015, Secure Endpoints Inc.
5b9d004c6Schristos  * All rights reserved.
6b9d004c6Schristos  *
7b9d004c6Schristos  * Redistribution and use in source and binary forms, with or without
8b9d004c6Schristos  * modification, are permitted provided that the following conditions
9b9d004c6Schristos  * are met:
10b9d004c6Schristos  *
11b9d004c6Schristos  * - Redistributions of source code must retain the above copyright
12b9d004c6Schristos  *   notice, this list of conditions and the following disclaimer.
13b9d004c6Schristos  *
14b9d004c6Schristos  * - Redistributions in binary form must reproduce the above copyright
15b9d004c6Schristos  *   notice, this list of conditions and the following disclaimer in
16b9d004c6Schristos  *   the documentation and/or other materials provided with the
17b9d004c6Schristos  *   distribution.
18b9d004c6Schristos  *
19b9d004c6Schristos  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20b9d004c6Schristos  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21b9d004c6Schristos  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
22b9d004c6Schristos  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
23b9d004c6Schristos  * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
24b9d004c6Schristos  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25b9d004c6Schristos  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26b9d004c6Schristos  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27b9d004c6Schristos  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28b9d004c6Schristos  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29b9d004c6Schristos  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
30b9d004c6Schristos  * OF THE POSSIBILITY OF SUCH DAMAGE.
31b9d004c6Schristos  */
32b9d004c6Schristos 
33b9d004c6Schristos /* Id */
34b9d004c6Schristos 
35b9d004c6Schristos #ifndef HEIM_EVP_WINCNG_H
36b9d004c6Schristos #define HEIM_EVP_WINCNG_H 1
37b9d004c6Schristos 
38b9d004c6Schristos /* symbol renaming */
39b9d004c6Schristos #define EVP_wincng_md4() EVP_wincng_md4()
40b9d004c6Schristos #define EVP_wincng_md5() EVP_wincng_md5()
41b9d004c6Schristos #define EVP_wincng_sha1() EVP_wincng_sha1()
42b9d004c6Schristos #define EVP_wincng_sha256() EVP_wincng_sha256()
43b9d004c6Schristos #define EVP_wincng_sha384() EVP_wincng_sha384()
44b9d004c6Schristos #define EVP_wincng_sha512() EVP_wincng_sha512()
45b9d004c6Schristos #define EVP_wincng_des_cbc() EVP_wincng_des_cbc()
46b9d004c6Schristos #define EVP_wincng_des_ede3_cbc() EVP_wincng_des_ede3_cbc()
47b9d004c6Schristos #define EVP_wincng_aes_128_cbc() EVP_wincng_aes_128_cbc()
48b9d004c6Schristos #define EVP_wincng_aes_192_cbc() EVP_wincng_aes_192_cbc()
49b9d004c6Schristos #define EVP_wincng_aes_256_cbc() EVP_wincng_aes_256_cbc()
50b9d004c6Schristos #define EVP_wincng_aes_128_cfb8() EVP_wincng_aes_128_cfb8()
51b9d004c6Schristos #define EVP_wincng_aes_192_cfb8() EVP_wincng_aes_192_cfb8()
52b9d004c6Schristos #define EVP_wincng_aes_256_cfb8() EVP_wincng_aes_256_cfb8()
53b9d004c6Schristos #define EVP_wincng_rc4() EVP_wincng_rc4()
54b9d004c6Schristos #define EVP_wincng_rc4_40() EVP_wincng_rc4_40()
55b9d004c6Schristos #define EVP_wincng_rc2_40_cbc() EVP_wincng_rc2_40_cbc()
56b9d004c6Schristos #define EVP_wincng_rc2_64_cbc() EVP_wincng_rc2_64_cbc()
57b9d004c6Schristos #define EVP_wincng_rc2_cbc() EVP_wincng_rc2_cbc()
58b9d004c6Schristos #define EVP_wincng_camellia_128_cbc() EVP_wincng_camellia_128_cbc()
59b9d004c6Schristos #define EVP_wincng_camellia_192_cbc() EVP_wincng_camellia_192_cbc()
60b9d004c6Schristos #define EVP_wincng_camellia_256_cbc() EVP_wincng_camellia_256_cbc()
61b9d004c6Schristos 
62b9d004c6Schristos /*
63b9d004c6Schristos  *
64b9d004c6Schristos  */
65b9d004c6Schristos 
66b9d004c6Schristos HC_CPP_BEGIN
67b9d004c6Schristos 
68b9d004c6Schristos const EVP_MD * hc_EVP_wincng_md4(void);
69b9d004c6Schristos const EVP_MD * hc_EVP_wincng_md5(void);
70b9d004c6Schristos const EVP_MD * hc_EVP_wincng_sha1(void);
71b9d004c6Schristos const EVP_MD * hc_EVP_wincng_sha256(void);
72b9d004c6Schristos const EVP_MD * hc_EVP_wincng_sha384(void);
73b9d004c6Schristos const EVP_MD * hc_EVP_wincng_sha512(void);
74b9d004c6Schristos 
75b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_rc2_cbc(void);
76b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_rc2_40_cbc(void);
77b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_rc2_64_cbc(void);
78b9d004c6Schristos 
79b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_rc4(void);
80b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_rc4_40(void);
81b9d004c6Schristos 
82b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_des_cbc(void);
83b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_des_ede3_cbc(void);
84b9d004c6Schristos 
85b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_aes_128_cbc(void);
86b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_aes_192_cbc(void);
87b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_aes_256_cbc(void);
88b9d004c6Schristos 
89b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_aes_128_cfb8(void);
90b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_aes_192_cfb8(void);
91b9d004c6Schristos const EVP_CIPHER * hc_EVP_wincng_aes_256_cfb8(void);
92b9d004c6Schristos 
93b9d004c6Schristos void _hc_wincng_cleanup(void);
94b9d004c6Schristos 
95b9d004c6Schristos HC_CPP_END
96b9d004c6Schristos 
97b9d004c6Schristos #endif /* HEIM_EVP_WINCNG_H */
98