xref: /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.h (revision afab4e300d3a9fb07dd8c80daf53d0feb3345706)
1*afab4e30Schristos /*	$NetBSD: evp-w32.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_W32_H
36b9d004c6Schristos #define HEIM_EVP_W32_H 1
37b9d004c6Schristos 
38b9d004c6Schristos /* symbol renaming */
39b9d004c6Schristos #define EVP_w32crypto_md4() hc_EVP_w32crypto_md4()
40b9d004c6Schristos #define EVP_w32crypto_md5() hc_EVP_w32crypto_md5()
41b9d004c6Schristos #define EVP_w32crypto_sha1() hc_EVP_w32crypto_sha1()
42b9d004c6Schristos #define EVP_w32crypto_sha256() hc_EVP_w32crypto_sha256()
43b9d004c6Schristos #define EVP_w32crypto_sha384() hc_EVP_w32crypto_sha384()
44b9d004c6Schristos #define EVP_w32crypto_sha512() hc_EVP_w32crypto_sha512()
45b9d004c6Schristos #define EVP_w32crypto_des_cbc() hc_EVP_w32crypto_des_cbc()
46b9d004c6Schristos #define EVP_w32crypto_des_ede3_cbc() hc_EVP_w32crypto_des_ede3_cbc()
47b9d004c6Schristos #define EVP_w32crypto_aes_128_cbc() hc_EVP_w32crypto_aes_128_cbc()
48b9d004c6Schristos #define EVP_w32crypto_aes_192_cbc() hc_EVP_w32crypto_aes_192_cbc()
49b9d004c6Schristos #define EVP_w32crypto_aes_256_cbc() hc_EVP_w32crypto_aes_256_cbc()
50b9d004c6Schristos #define EVP_w32crypto_aes_128_cfb8() hc_EVP_w32crypto_aes_128_cfb8()
51b9d004c6Schristos #define EVP_w32crypto_aes_192_cfb8() hc_EVP_w32crypto_aes_192_cfb8()
52b9d004c6Schristos #define EVP_w32crypto_aes_256_cfb8() hc_EVP_w32crypto_aes_256_cfb8()
53b9d004c6Schristos #define EVP_w32crypto_rc4() hc_EVP_w32crypto_rc4()
54b9d004c6Schristos #define EVP_w32crypto_rc4_40() hc_EVP_w32crypto_rc4_40()
55b9d004c6Schristos #define EVP_w32crypto_rc2_40_cbc() hc_EVP_w32crypto_rc2_40_cbc()
56b9d004c6Schristos #define EVP_w32crypto_rc2_64_cbc() hc_EVP_w32crypto_rc2_64_cbc()
57b9d004c6Schristos #define EVP_w32crypto_rc2_cbc() hc_EVP_w32crypto_rc2_cbc()
58b9d004c6Schristos #define EVP_w32crypto_camellia_128_cbc() hc_EVP_w32crypto_camellia_128_cbc()
59b9d004c6Schristos #define EVP_w32crypto_camellia_192_cbc() hc_EVP_w32crypto_camellia_192_cbc()
60b9d004c6Schristos #define EVP_w32crypto_camellia_256_cbc() hc_EVP_w32crypto_camellia_256_cbc()
61b9d004c6Schristos 
62b9d004c6Schristos /*
63b9d004c6Schristos  * This provider dynamically selects between Windows CNG (if running
64b9d004c6Schristos  * on Vista or above) or the inbuilt provider (if running on XP).
65b9d004c6Schristos  */
66b9d004c6Schristos 
67b9d004c6Schristos HC_CPP_BEGIN
68b9d004c6Schristos 
69b9d004c6Schristos const EVP_MD * hc_EVP_w32crypto_md4(void);
70b9d004c6Schristos const EVP_MD * hc_EVP_w32crypto_md5(void);
71b9d004c6Schristos const EVP_MD * hc_EVP_w32crypto_sha1(void);
72b9d004c6Schristos const EVP_MD * hc_EVP_w32crypto_sha256(void);
73b9d004c6Schristos const EVP_MD * hc_EVP_w32crypto_sha384(void);
74b9d004c6Schristos const EVP_MD * hc_EVP_w32crypto_sha512(void);
75b9d004c6Schristos 
76b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_des_cbc(void);
77b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_des_ede3_cbc(void);
78b9d004c6Schristos 
79b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_aes_128_cbc(void);
80b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_aes_192_cbc(void);
81b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_aes_256_cbc(void);
82b9d004c6Schristos 
83b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_aes_128_cfb8(void);
84b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_aes_192_cfb8(void);
85b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_aes_256_cfb8(void);
86b9d004c6Schristos 
87b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_rc4(void);
88b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_rc4_40(void);
89b9d004c6Schristos 
90b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_rc2_cbc(void);
91b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_rc2_40_cbc(void);
92b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_rc2_64_cbc(void);
93b9d004c6Schristos 
94b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_camellia_128_cbc(void);
95b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_camellia_192_cbc(void);
96b9d004c6Schristos const EVP_CIPHER * hc_EVP_w32crypto_camellia_256_cbc(void);
97b9d004c6Schristos 
98b9d004c6Schristos HC_CPP_END
99b9d004c6Schristos 
100b9d004c6Schristos #endif /* HEIM_EVP_W32_H */
101