1/*
2 * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
10/* Digests */
11extern const OSSL_DISPATCH sha1_functions[];
12extern const OSSL_DISPATCH sha224_functions[];
13extern const OSSL_DISPATCH sha256_functions[];
14extern const OSSL_DISPATCH sha384_functions[];
15extern const OSSL_DISPATCH sha512_functions[];
16extern const OSSL_DISPATCH sha512_224_functions[];
17extern const OSSL_DISPATCH sha512_256_functions[];
18extern const OSSL_DISPATCH sha3_224_functions[];
19extern const OSSL_DISPATCH sha3_256_functions[];
20extern const OSSL_DISPATCH sha3_384_functions[];
21extern const OSSL_DISPATCH sha3_512_functions[];
22extern const OSSL_DISPATCH keccak_kmac_128_functions[];
23extern const OSSL_DISPATCH keccak_kmac_256_functions[];
24extern const OSSL_DISPATCH shake_128_functions[];
25extern const OSSL_DISPATCH shake_256_functions[];
26extern const OSSL_DISPATCH blake2s256_functions[];
27extern const OSSL_DISPATCH blake2b512_functions[];
28extern const OSSL_DISPATCH md5_functions[];
29extern const OSSL_DISPATCH md5_sha1_functions[];
30extern const OSSL_DISPATCH sm3_functions[];
31extern const OSSL_DISPATCH md2_functions[];
32extern const OSSL_DISPATCH md4_functions[];
33extern const OSSL_DISPATCH mdc2_functions[];
34extern const OSSL_DISPATCH wp_functions[];
35extern const OSSL_DISPATCH ripemd160_functions[];
36
37/* Ciphers */
38extern const OSSL_DISPATCH aes256ecb_functions[];
39extern const OSSL_DISPATCH aes192ecb_functions[];
40extern const OSSL_DISPATCH aes128ecb_functions[];
41extern const OSSL_DISPATCH aes256cbc_functions[];
42extern const OSSL_DISPATCH aes192cbc_functions[];
43extern const OSSL_DISPATCH aes128cbc_functions[];
44extern const OSSL_DISPATCH aes256ofb_functions[];
45extern const OSSL_DISPATCH aes192ofb_functions[];
46extern const OSSL_DISPATCH aes128ofb_functions[];
47extern const OSSL_DISPATCH aes256cfb_functions[];
48extern const OSSL_DISPATCH aes192cfb_functions[];
49extern const OSSL_DISPATCH aes128cfb_functions[];
50extern const OSSL_DISPATCH aes256cfb1_functions[];
51extern const OSSL_DISPATCH aes192cfb1_functions[];
52extern const OSSL_DISPATCH aes128cfb1_functions[];
53extern const OSSL_DISPATCH aes256cfb8_functions[];
54extern const OSSL_DISPATCH aes192cfb8_functions[];
55extern const OSSL_DISPATCH aes128cfb8_functions[];
56extern const OSSL_DISPATCH aes256ctr_functions[];
57extern const OSSL_DISPATCH aes192ctr_functions[];
58extern const OSSL_DISPATCH aes128ctr_functions[];
59extern const OSSL_DISPATCH aes256xts_functions[];
60extern const OSSL_DISPATCH aes128xts_functions[];
61#ifndef OPENSSL_NO_OCB
62extern const OSSL_DISPATCH aes256ocb_functions[];
63extern const OSSL_DISPATCH aes192ocb_functions[];
64extern const OSSL_DISPATCH aes128ocb_functions[];
65#endif /* OPENSSL_NO_OCB */
66extern const OSSL_DISPATCH aes256gcm_functions[];
67extern const OSSL_DISPATCH aes192gcm_functions[];
68extern const OSSL_DISPATCH aes128gcm_functions[];
69extern const OSSL_DISPATCH aes256ccm_functions[];
70extern const OSSL_DISPATCH aes192ccm_functions[];
71extern const OSSL_DISPATCH aes128ccm_functions[];
72extern const OSSL_DISPATCH aes256wrap_functions[];
73extern const OSSL_DISPATCH aes192wrap_functions[];
74extern const OSSL_DISPATCH aes128wrap_functions[];
75extern const OSSL_DISPATCH aes256wrappad_functions[];
76extern const OSSL_DISPATCH aes192wrappad_functions[];
77extern const OSSL_DISPATCH aes128wrappad_functions[];
78
79#ifndef OPENSSL_NO_ARIA
80extern const OSSL_DISPATCH aria256gcm_functions[];
81extern const OSSL_DISPATCH aria192gcm_functions[];
82extern const OSSL_DISPATCH aria128gcm_functions[];
83extern const OSSL_DISPATCH aria256ccm_functions[];
84extern const OSSL_DISPATCH aria192ccm_functions[];
85extern const OSSL_DISPATCH aria128ccm_functions[];
86extern const OSSL_DISPATCH aria256ecb_functions[];
87extern const OSSL_DISPATCH aria192ecb_functions[];
88extern const OSSL_DISPATCH aria128ecb_functions[];
89extern const OSSL_DISPATCH aria256cbc_functions[];
90extern const OSSL_DISPATCH aria192cbc_functions[];
91extern const OSSL_DISPATCH aria128cbc_functions[];
92extern const OSSL_DISPATCH aria256ofb_functions[];
93extern const OSSL_DISPATCH aria192ofb_functions[];
94extern const OSSL_DISPATCH aria128ofb_functions[];
95extern const OSSL_DISPATCH aria256cfb_functions[];
96extern const OSSL_DISPATCH aria192cfb_functions[];
97extern const OSSL_DISPATCH aria128cfb_functions[];
98extern const OSSL_DISPATCH aria256cfb1_functions[];
99extern const OSSL_DISPATCH aria192cfb1_functions[];
100extern const OSSL_DISPATCH aria128cfb1_functions[];
101extern const OSSL_DISPATCH aria256cfb8_functions[];
102extern const OSSL_DISPATCH aria192cfb8_functions[];
103extern const OSSL_DISPATCH aria128cfb8_functions[];
104extern const OSSL_DISPATCH aria256ctr_functions[];
105extern const OSSL_DISPATCH aria192ctr_functions[];
106extern const OSSL_DISPATCH aria128ctr_functions[];
107#endif /* OPENSSL_NO_ARIA */
108#ifndef OPENSSL_NO_CAMELLIA
109extern const OSSL_DISPATCH camellia256ecb_functions[];
110extern const OSSL_DISPATCH camellia192ecb_functions[];
111extern const OSSL_DISPATCH camellia128ecb_functions[];
112extern const OSSL_DISPATCH camellia256cbc_functions[];
113extern const OSSL_DISPATCH camellia192cbc_functions[];
114extern const OSSL_DISPATCH camellia128cbc_functions[];
115extern const OSSL_DISPATCH camellia256ofb_functions[];
116extern const OSSL_DISPATCH camellia192ofb_functions[];
117extern const OSSL_DISPATCH camellia128ofb_functions[];
118extern const OSSL_DISPATCH camellia256cfb_functions[];
119extern const OSSL_DISPATCH camellia192cfb_functions[];
120extern const OSSL_DISPATCH camellia128cfb_functions[];
121extern const OSSL_DISPATCH camellia256cfb1_functions[];
122extern const OSSL_DISPATCH camellia192cfb1_functions[];
123extern const OSSL_DISPATCH camellia128cfb1_functions[];
124extern const OSSL_DISPATCH camellia256cfb8_functions[];
125extern const OSSL_DISPATCH camellia192cfb8_functions[];
126extern const OSSL_DISPATCH camellia128cfb8_functions[];
127extern const OSSL_DISPATCH camellia256ctr_functions[];
128extern const OSSL_DISPATCH camellia192ctr_functions[];
129extern const OSSL_DISPATCH camellia128ctr_functions[];
130#endif /* OPENSSL_NO_CAMELLIA */
131#ifndef OPENSSL_NO_BF
132extern const OSSL_DISPATCH blowfish128ecb_functions[];
133extern const OSSL_DISPATCH blowfish128cbc_functions[];
134extern const OSSL_DISPATCH blowfish64ofb64_functions[];
135extern const OSSL_DISPATCH blowfish64cfb64_functions[];
136#endif /* OPENSSL_NO_BF */
137#ifndef OPENSSL_NO_IDEA
138extern const OSSL_DISPATCH idea128ecb_functions[];
139extern const OSSL_DISPATCH idea128cbc_functions[];
140extern const OSSL_DISPATCH idea128ofb64_functions[];
141extern const OSSL_DISPATCH idea128cfb64_functions[];
142#endif /* OPENSSL_NO_IDEA */
143#ifndef OPENSSL_NO_CAST
144extern const OSSL_DISPATCH cast5128ecb_functions[];
145extern const OSSL_DISPATCH cast5128cbc_functions[];
146extern const OSSL_DISPATCH cast564ofb64_functions[];
147extern const OSSL_DISPATCH cast564cfb64_functions[];
148#endif /* OPENSSL_NO_CAST */
149#ifndef OPENSSL_NO_SEED
150extern const OSSL_DISPATCH seed128ecb_functions[];
151extern const OSSL_DISPATCH seed128cbc_functions[];
152extern const OSSL_DISPATCH seed128ofb128_functions[];
153extern const OSSL_DISPATCH seed128cfb128_functions[];
154#endif /* OPENSSL_NO_SEED */
155#ifndef OPENSSL_NO_SM4
156extern const OSSL_DISPATCH sm4128ecb_functions[];
157extern const OSSL_DISPATCH sm4128cbc_functions[];
158extern const OSSL_DISPATCH sm4128ctr_functions[];
159extern const OSSL_DISPATCH sm4128ofb128_functions[];
160extern const OSSL_DISPATCH sm4128cfb128_functions[];
161#endif /* OPENSSL_NO_SM4 */
162#ifndef OPENSSL_NO_RC5
163extern const OSSL_DISPATCH rc5128ecb_functions[];
164extern const OSSL_DISPATCH rc5128cbc_functions[];
165extern const OSSL_DISPATCH rc5128ofb64_functions[];
166extern const OSSL_DISPATCH rc5128cfb64_functions[];
167#endif /* OPENSSL_NO_RC5 */
168#ifndef OPENSSL_NO_RC2
169extern const OSSL_DISPATCH rc2128ecb_functions[];
170extern const OSSL_DISPATCH rc2128cbc_functions[];
171extern const OSSL_DISPATCH rc240cbc_functions[];
172extern const OSSL_DISPATCH rc264cbc_functions[];
173extern const OSSL_DISPATCH rc2128cfb128_functions[];
174extern const OSSL_DISPATCH rc2128ofb128_functions[];
175#endif /* OPENSSL_NO_RC2 */
176#ifndef OPENSSL_NO_DES
177extern const OSSL_DISPATCH tdes_ede3_ecb_functions[];
178extern const OSSL_DISPATCH tdes_ede3_cbc_functions[];
179# ifndef FIPS_MODE
180extern const OSSL_DISPATCH tdes_ede3_ofb_functions[];
181extern const OSSL_DISPATCH tdes_ede3_cfb_functions[];
182extern const OSSL_DISPATCH tdes_ede3_cfb8_functions[];
183extern const OSSL_DISPATCH tdes_ede3_cfb1_functions[];
184
185extern const OSSL_DISPATCH tdes_ede2_ecb_functions[];
186extern const OSSL_DISPATCH tdes_ede2_cbc_functions[];
187extern const OSSL_DISPATCH tdes_ede2_ofb_functions[];
188extern const OSSL_DISPATCH tdes_ede2_cfb_functions[];
189
190extern const OSSL_DISPATCH tdes_desx_cbc_functions[];
191extern const OSSL_DISPATCH tdes_wrap_cbc_functions[];
192
193extern const OSSL_DISPATCH des_ecb_functions[];
194extern const OSSL_DISPATCH des_cbc_functions[];
195extern const OSSL_DISPATCH des_ofb64_functions[];
196extern const OSSL_DISPATCH des_cfb64_functions[];
197extern const OSSL_DISPATCH des_cfb1_functions[];
198extern const OSSL_DISPATCH des_cfb8_functions[];
199# endif /* FIPS_MODE */
200#endif /* OPENSSL_NO_DES */
201
202#ifndef OPENSSL_NO_RC4
203extern const OSSL_DISPATCH rc440_functions[];
204extern const OSSL_DISPATCH rc4128_functions[];
205# ifndef OPENSSL_NO_MD5
206extern const OSSL_DISPATCH rc4_hmac_md5_functions[];
207# endif /* OPENSSL_NO_MD5 */
208#endif /* OPENSSL_NO_RC4 */
209#ifndef OPENSSL_NO_CHACHA
210extern const OSSL_DISPATCH chacha20_functions[];
211# ifndef OPENSSL_NO_POLY1305
212extern const OSSL_DISPATCH chacha20_poly1305_functions[];
213# endif /* OPENSSL_NO_POLY1305 */
214#endif /* OPENSSL_NO_CHACHA */
215
216
217#ifndef OPENSSL_NO_SIV
218extern const OSSL_DISPATCH aes128siv_functions[];
219extern const OSSL_DISPATCH aes192siv_functions[];
220extern const OSSL_DISPATCH aes256siv_functions[];
221#endif /* OPENSSL_NO_SIV */
222
223/* MACs */
224extern const OSSL_DISPATCH blake2bmac_functions[];
225extern const OSSL_DISPATCH blake2smac_functions[];
226extern const OSSL_DISPATCH cmac_functions[];
227extern const OSSL_DISPATCH gmac_functions[];
228extern const OSSL_DISPATCH hmac_functions[];
229extern const OSSL_DISPATCH kmac128_functions[];
230extern const OSSL_DISPATCH kmac256_functions[];
231extern const OSSL_DISPATCH siphash_functions[];
232extern const OSSL_DISPATCH poly1305_functions[];
233
234/* KDFs / PRFs */
235extern const OSSL_DISPATCH kdf_pbkdf2_functions[];
236#ifndef OPENSSL_NO_SCRYPT
237extern const OSSL_DISPATCH kdf_scrypt_functions[];
238#endif
239extern const OSSL_DISPATCH kdf_tls1_prf_functions[];
240extern const OSSL_DISPATCH kdf_hkdf_functions[];
241extern const OSSL_DISPATCH kdf_sshkdf_functions[];
242extern const OSSL_DISPATCH kdf_sskdf_functions[];
243extern const OSSL_DISPATCH kdf_x963_kdf_functions[];
244extern const OSSL_DISPATCH kdf_kbkdf_functions[];
245#ifndef OPENSSL_NO_CMS
246extern const OSSL_DISPATCH kdf_x942_kdf_functions[];
247#endif
248extern const OSSL_DISPATCH kdf_krb5kdf_functions[];
249
250
251/* Key management */
252extern const OSSL_DISPATCH dh_keymgmt_functions[];
253extern const OSSL_DISPATCH dsa_keymgmt_functions[];
254extern const OSSL_DISPATCH rsa_keymgmt_functions[];
255
256/* Key Exchange */
257extern const OSSL_DISPATCH dh_keyexch_functions[];
258
259/* Signature */
260extern const OSSL_DISPATCH dsa_signature_functions[];
261
262/* Asym Cipher */
263extern const OSSL_DISPATCH rsa_asym_cipher_functions[];
264
265/* Serializers */
266extern const OSSL_DISPATCH rsa_priv_text_serializer_functions[];
267extern const OSSL_DISPATCH rsa_pub_text_serializer_functions[];
268extern const OSSL_DISPATCH rsa_priv_der_serializer_functions[];
269extern const OSSL_DISPATCH rsa_pub_der_serializer_functions[];
270extern const OSSL_DISPATCH rsa_priv_pem_serializer_functions[];
271extern const OSSL_DISPATCH rsa_pub_pem_serializer_functions[];
272extern const OSSL_DISPATCH dh_priv_text_serializer_functions[];
273extern const OSSL_DISPATCH dh_pub_text_serializer_functions[];
274extern const OSSL_DISPATCH dh_param_text_serializer_functions[];
275extern const OSSL_DISPATCH dh_priv_der_serializer_functions[];
276extern const OSSL_DISPATCH dh_pub_der_serializer_functions[];
277extern const OSSL_DISPATCH dh_param_der_serializer_functions[];
278extern const OSSL_DISPATCH dh_priv_pem_serializer_functions[];
279extern const OSSL_DISPATCH dh_pub_pem_serializer_functions[];
280extern const OSSL_DISPATCH dh_param_pem_serializer_functions[];
281extern const OSSL_DISPATCH dsa_priv_text_serializer_functions[];
282extern const OSSL_DISPATCH dsa_pub_text_serializer_functions[];
283extern const OSSL_DISPATCH dsa_param_text_serializer_functions[];
284extern const OSSL_DISPATCH dsa_priv_der_serializer_functions[];
285extern const OSSL_DISPATCH dsa_pub_der_serializer_functions[];
286extern const OSSL_DISPATCH dsa_param_der_serializer_functions[];
287extern const OSSL_DISPATCH dsa_priv_pem_serializer_functions[];
288extern const OSSL_DISPATCH dsa_pub_pem_serializer_functions[];
289extern const OSSL_DISPATCH dsa_param_pem_serializer_functions[];
290