]> git.ipfire.org Git - thirdparty/openssl.git/blame - providers/implementations/include/prov/implementations.h
CORE: Add upcalls for BIO_gets() and BIO_puts()
[thirdparty/openssl.git] / providers / implementations / include / prov / implementations.h
CommitLineData
861b8f87 1/*
f552d900 2 * Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
861b8f87
MC
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
714a1bb3
P
10#include <openssl/core.h>
11#include <openssl/types.h>
12
861b8f87 13/* Digests */
d5e5e2ff
SL
14extern const OSSL_DISPATCH sha1_functions[];
15extern const OSSL_DISPATCH sha224_functions[];
861b8f87 16extern const OSSL_DISPATCH sha256_functions[];
d5e5e2ff
SL
17extern const OSSL_DISPATCH sha384_functions[];
18extern const OSSL_DISPATCH sha512_functions[];
19extern const OSSL_DISPATCH sha512_224_functions[];
20extern const OSSL_DISPATCH sha512_256_functions[];
21extern const OSSL_DISPATCH sha3_224_functions[];
22extern const OSSL_DISPATCH sha3_256_functions[];
23extern const OSSL_DISPATCH sha3_384_functions[];
24extern const OSSL_DISPATCH sha3_512_functions[];
25extern const OSSL_DISPATCH keccak_kmac_128_functions[];
26extern const OSSL_DISPATCH keccak_kmac_256_functions[];
27extern const OSSL_DISPATCH shake_128_functions[];
28extern const OSSL_DISPATCH shake_256_functions[];
29extern const OSSL_DISPATCH blake2s256_functions[];
30extern const OSSL_DISPATCH blake2b512_functions[];
31extern const OSSL_DISPATCH md5_functions[];
32extern const OSSL_DISPATCH md5_sha1_functions[];
33extern const OSSL_DISPATCH sm3_functions[];
d5e5e2ff
SL
34extern const OSSL_DISPATCH md2_functions[];
35extern const OSSL_DISPATCH md4_functions[];
36extern const OSSL_DISPATCH mdc2_functions[];
37extern const OSSL_DISPATCH wp_functions[];
38extern const OSSL_DISPATCH ripemd160_functions[];
861b8f87
MC
39
40/* Ciphers */
068489a2 41extern const OSSL_DISPATCH null_functions[];
861b8f87 42extern const OSSL_DISPATCH aes256ecb_functions[];
f4a129bb
MC
43extern const OSSL_DISPATCH aes192ecb_functions[];
44extern const OSSL_DISPATCH aes128ecb_functions[];
718b133a
MC
45extern const OSSL_DISPATCH aes256cbc_functions[];
46extern const OSSL_DISPATCH aes192cbc_functions[];
47extern const OSSL_DISPATCH aes128cbc_functions[];
7cc355c2
SL
48extern const OSSL_DISPATCH aes256cbc_cts_functions[];
49extern const OSSL_DISPATCH aes192cbc_cts_functions[];
50extern const OSSL_DISPATCH aes128cbc_cts_functions[];
ed98df51
MC
51extern const OSSL_DISPATCH aes256ofb_functions[];
52extern const OSSL_DISPATCH aes192ofb_functions[];
53extern const OSSL_DISPATCH aes128ofb_functions[];
75dd6d64
MC
54extern const OSSL_DISPATCH aes256cfb_functions[];
55extern const OSSL_DISPATCH aes192cfb_functions[];
56extern const OSSL_DISPATCH aes128cfb_functions[];
57extern const OSSL_DISPATCH aes256cfb1_functions[];
58extern const OSSL_DISPATCH aes192cfb1_functions[];
59extern const OSSL_DISPATCH aes128cfb1_functions[];
60extern const OSSL_DISPATCH aes256cfb8_functions[];
61extern const OSSL_DISPATCH aes192cfb8_functions[];
62extern const OSSL_DISPATCH aes128cfb8_functions[];
819a7ae9
MC
63extern const OSSL_DISPATCH aes256ctr_functions[];
64extern const OSSL_DISPATCH aes192ctr_functions[];
65extern const OSSL_DISPATCH aes128ctr_functions[];
3a9f26f3
SL
66extern const OSSL_DISPATCH aes256xts_functions[];
67extern const OSSL_DISPATCH aes128xts_functions[];
3837c202
SL
68#ifndef OPENSSL_NO_OCB
69extern const OSSL_DISPATCH aes256ocb_functions[];
70extern const OSSL_DISPATCH aes192ocb_functions[];
71extern const OSSL_DISPATCH aes128ocb_functions[];
72#endif /* OPENSSL_NO_OCB */
a672a02a
SL
73extern const OSSL_DISPATCH aes256gcm_functions[];
74extern const OSSL_DISPATCH aes192gcm_functions[];
75extern const OSSL_DISPATCH aes128gcm_functions[];
3bfe9005
SL
76extern const OSSL_DISPATCH aes256ccm_functions[];
77extern const OSSL_DISPATCH aes192ccm_functions[];
78extern const OSSL_DISPATCH aes128ccm_functions[];
ca392b29
SL
79extern const OSSL_DISPATCH aes256wrap_functions[];
80extern const OSSL_DISPATCH aes192wrap_functions[];
81extern const OSSL_DISPATCH aes128wrap_functions[];
82extern const OSSL_DISPATCH aes256wrappad_functions[];
83extern const OSSL_DISPATCH aes192wrappad_functions[];
84extern const OSSL_DISPATCH aes128wrappad_functions[];
0d2bfe52
SL
85extern const OSSL_DISPATCH aes256cbc_hmac_sha1_functions[];
86extern const OSSL_DISPATCH aes128cbc_hmac_sha1_functions[];
87extern const OSSL_DISPATCH aes256cbc_hmac_sha256_functions[];
88extern const OSSL_DISPATCH aes128cbc_hmac_sha256_functions[];
ca392b29 89
a672a02a
SL
90#ifndef OPENSSL_NO_ARIA
91extern const OSSL_DISPATCH aria256gcm_functions[];
92extern const OSSL_DISPATCH aria192gcm_functions[];
93extern const OSSL_DISPATCH aria128gcm_functions[];
3bfe9005
SL
94extern const OSSL_DISPATCH aria256ccm_functions[];
95extern const OSSL_DISPATCH aria192ccm_functions[];
96extern const OSSL_DISPATCH aria128ccm_functions[];
e1178600
SL
97extern const OSSL_DISPATCH aria256ecb_functions[];
98extern const OSSL_DISPATCH aria192ecb_functions[];
99extern const OSSL_DISPATCH aria128ecb_functions[];
100extern const OSSL_DISPATCH aria256cbc_functions[];
101extern const OSSL_DISPATCH aria192cbc_functions[];
102extern const OSSL_DISPATCH aria128cbc_functions[];
103extern const OSSL_DISPATCH aria256ofb_functions[];
104extern const OSSL_DISPATCH aria192ofb_functions[];
105extern const OSSL_DISPATCH aria128ofb_functions[];
106extern const OSSL_DISPATCH aria256cfb_functions[];
107extern const OSSL_DISPATCH aria192cfb_functions[];
108extern const OSSL_DISPATCH aria128cfb_functions[];
109extern const OSSL_DISPATCH aria256cfb1_functions[];
110extern const OSSL_DISPATCH aria192cfb1_functions[];
111extern const OSSL_DISPATCH aria128cfb1_functions[];
112extern const OSSL_DISPATCH aria256cfb8_functions[];
113extern const OSSL_DISPATCH aria192cfb8_functions[];
114extern const OSSL_DISPATCH aria128cfb8_functions[];
115extern const OSSL_DISPATCH aria256ctr_functions[];
116extern const OSSL_DISPATCH aria192ctr_functions[];
117extern const OSSL_DISPATCH aria128ctr_functions[];
a672a02a 118#endif /* OPENSSL_NO_ARIA */
e1178600
SL
119#ifndef OPENSSL_NO_CAMELLIA
120extern const OSSL_DISPATCH camellia256ecb_functions[];
121extern const OSSL_DISPATCH camellia192ecb_functions[];
122extern const OSSL_DISPATCH camellia128ecb_functions[];
123extern const OSSL_DISPATCH camellia256cbc_functions[];
124extern const OSSL_DISPATCH camellia192cbc_functions[];
125extern const OSSL_DISPATCH camellia128cbc_functions[];
126extern const OSSL_DISPATCH camellia256ofb_functions[];
127extern const OSSL_DISPATCH camellia192ofb_functions[];
128extern const OSSL_DISPATCH camellia128ofb_functions[];
129extern const OSSL_DISPATCH camellia256cfb_functions[];
130extern const OSSL_DISPATCH camellia192cfb_functions[];
131extern const OSSL_DISPATCH camellia128cfb_functions[];
132extern const OSSL_DISPATCH camellia256cfb1_functions[];
133extern const OSSL_DISPATCH camellia192cfb1_functions[];
134extern const OSSL_DISPATCH camellia128cfb1_functions[];
135extern const OSSL_DISPATCH camellia256cfb8_functions[];
136extern const OSSL_DISPATCH camellia192cfb8_functions[];
137extern const OSSL_DISPATCH camellia128cfb8_functions[];
138extern const OSSL_DISPATCH camellia256ctr_functions[];
139extern const OSSL_DISPATCH camellia192ctr_functions[];
140extern const OSSL_DISPATCH camellia128ctr_functions[];
141#endif /* OPENSSL_NO_CAMELLIA */
55c7dc79
SL
142#ifndef OPENSSL_NO_BF
143extern const OSSL_DISPATCH blowfish128ecb_functions[];
144extern const OSSL_DISPATCH blowfish128cbc_functions[];
145extern const OSSL_DISPATCH blowfish64ofb64_functions[];
146extern const OSSL_DISPATCH blowfish64cfb64_functions[];
147#endif /* OPENSSL_NO_BF */
f22431f2
SL
148#ifndef OPENSSL_NO_IDEA
149extern const OSSL_DISPATCH idea128ecb_functions[];
150extern const OSSL_DISPATCH idea128cbc_functions[];
151extern const OSSL_DISPATCH idea128ofb64_functions[];
152extern const OSSL_DISPATCH idea128cfb64_functions[];
153#endif /* OPENSSL_NO_IDEA */
18b00427
SL
154#ifndef OPENSSL_NO_CAST
155extern const OSSL_DISPATCH cast5128ecb_functions[];
156extern const OSSL_DISPATCH cast5128cbc_functions[];
95cf6440
SL
157extern const OSSL_DISPATCH cast5128ofb64_functions[];
158extern const OSSL_DISPATCH cast5128cfb64_functions[];
18b00427 159#endif /* OPENSSL_NO_CAST */
70adc646
SL
160#ifndef OPENSSL_NO_SEED
161extern const OSSL_DISPATCH seed128ecb_functions[];
162extern const OSSL_DISPATCH seed128cbc_functions[];
163extern const OSSL_DISPATCH seed128ofb128_functions[];
164extern const OSSL_DISPATCH seed128cfb128_functions[];
165#endif /* OPENSSL_NO_SEED */
105dde25
SL
166#ifndef OPENSSL_NO_SM4
167extern const OSSL_DISPATCH sm4128ecb_functions[];
168extern const OSSL_DISPATCH sm4128cbc_functions[];
169extern const OSSL_DISPATCH sm4128ctr_functions[];
170extern const OSSL_DISPATCH sm4128ofb128_functions[];
171extern const OSSL_DISPATCH sm4128cfb128_functions[];
172#endif /* OPENSSL_NO_SM4 */
6a41156c
SL
173#ifndef OPENSSL_NO_RC5
174extern const OSSL_DISPATCH rc5128ecb_functions[];
175extern const OSSL_DISPATCH rc5128cbc_functions[];
176extern const OSSL_DISPATCH rc5128ofb64_functions[];
177extern const OSSL_DISPATCH rc5128cfb64_functions[];
178#endif /* OPENSSL_NO_RC5 */
f816aa47
SL
179#ifndef OPENSSL_NO_RC2
180extern const OSSL_DISPATCH rc2128ecb_functions[];
181extern const OSSL_DISPATCH rc2128cbc_functions[];
182extern const OSSL_DISPATCH rc240cbc_functions[];
183extern const OSSL_DISPATCH rc264cbc_functions[];
184extern const OSSL_DISPATCH rc2128cfb128_functions[];
185extern const OSSL_DISPATCH rc2128ofb128_functions[];
186#endif /* OPENSSL_NO_RC2 */
e3f3ee44 187#ifndef OPENSSL_NO_DES
4a42e264
SL
188extern const OSSL_DISPATCH tdes_ede3_ecb_functions[];
189extern const OSSL_DISPATCH tdes_ede3_cbc_functions[];
f844f9eb 190# ifndef FIPS_MODULE
4a42e264
SL
191extern const OSSL_DISPATCH tdes_ede3_ofb_functions[];
192extern const OSSL_DISPATCH tdes_ede3_cfb_functions[];
193extern const OSSL_DISPATCH tdes_ede3_cfb8_functions[];
194extern const OSSL_DISPATCH tdes_ede3_cfb1_functions[];
195
196extern const OSSL_DISPATCH tdes_ede2_ecb_functions[];
197extern const OSSL_DISPATCH tdes_ede2_cbc_functions[];
198extern const OSSL_DISPATCH tdes_ede2_ofb_functions[];
199extern const OSSL_DISPATCH tdes_ede2_cfb_functions[];
200
201extern const OSSL_DISPATCH tdes_desx_cbc_functions[];
202extern const OSSL_DISPATCH tdes_wrap_cbc_functions[];
e3f3ee44
SL
203
204extern const OSSL_DISPATCH des_ecb_functions[];
205extern const OSSL_DISPATCH des_cbc_functions[];
206extern const OSSL_DISPATCH des_ofb64_functions[];
207extern const OSSL_DISPATCH des_cfb64_functions[];
208extern const OSSL_DISPATCH des_cfb1_functions[];
209extern const OSSL_DISPATCH des_cfb8_functions[];
f844f9eb 210# endif /* FIPS_MODULE */
e3f3ee44 211#endif /* OPENSSL_NO_DES */
4a42e264 212
bafde183
SL
213#ifndef OPENSSL_NO_RC4
214extern const OSSL_DISPATCH rc440_functions[];
215extern const OSSL_DISPATCH rc4128_functions[];
8fece335
SL
216# ifndef OPENSSL_NO_MD5
217extern const OSSL_DISPATCH rc4_hmac_md5_functions[];
218# endif /* OPENSSL_NO_MD5 */
bafde183 219#endif /* OPENSSL_NO_RC4 */
3d5a7578
SL
220#ifndef OPENSSL_NO_CHACHA
221extern const OSSL_DISPATCH chacha20_functions[];
222# ifndef OPENSSL_NO_POLY1305
223extern const OSSL_DISPATCH chacha20_poly1305_functions[];
224# endif /* OPENSSL_NO_POLY1305 */
225#endif /* OPENSSL_NO_CHACHA */
226
bafde183 227
eb173822
SL
228#ifndef OPENSSL_NO_SIV
229extern const OSSL_DISPATCH aes128siv_functions[];
230extern const OSSL_DISPATCH aes192siv_functions[];
231extern const OSSL_DISPATCH aes256siv_functions[];
232#endif /* OPENSSL_NO_SIV */
233
e3405a4a
P
234/* MACs */
235extern const OSSL_DISPATCH blake2bmac_functions[];
236extern const OSSL_DISPATCH blake2smac_functions[];
237extern const OSSL_DISPATCH cmac_functions[];
238extern const OSSL_DISPATCH gmac_functions[];
239extern const OSSL_DISPATCH hmac_functions[];
240extern const OSSL_DISPATCH kmac128_functions[];
241extern const OSSL_DISPATCH kmac256_functions[];
242extern const OSSL_DISPATCH siphash_functions[];
243extern const OSSL_DISPATCH poly1305_functions[];
244
245/* KDFs / PRFs */
246extern const OSSL_DISPATCH kdf_pbkdf2_functions[];
247#ifndef OPENSSL_NO_SCRYPT
248extern const OSSL_DISPATCH kdf_scrypt_functions[];
249#endif
250extern const OSSL_DISPATCH kdf_tls1_prf_functions[];
251extern const OSSL_DISPATCH kdf_hkdf_functions[];
252extern const OSSL_DISPATCH kdf_sshkdf_functions[];
253extern const OSSL_DISPATCH kdf_sskdf_functions[];
254extern const OSSL_DISPATCH kdf_x963_kdf_functions[];
a39bc440 255extern const OSSL_DISPATCH kdf_kbkdf_functions[];
e3405a4a
P
256#ifndef OPENSSL_NO_CMS
257extern const OSSL_DISPATCH kdf_x942_kdf_functions[];
258#endif
33f54da3 259extern const OSSL_DISPATCH kdf_krb5kdf_functions[];
e3405a4a 260
714a1bb3
P
261/* RNGs */
262extern const OSSL_DISPATCH test_rng_functions[];
263extern const OSSL_DISPATCH drbg_hash_functions[];
264extern const OSSL_DISPATCH drbg_hmac_functions[];
265extern const OSSL_DISPATCH drbg_ctr_functions[];
266extern const OSSL_DISPATCH crngt_functions[];
e3405a4a 267
8b84b075
RL
268/* Key management */
269extern const OSSL_DISPATCH dh_keymgmt_functions[];
4889dadc 270extern const OSSL_DISPATCH dsa_keymgmt_functions[];
29be6023 271extern const OSSL_DISPATCH rsa_keymgmt_functions[];
8a758e96 272extern const OSSL_DISPATCH rsapss_keymgmt_functions[];
90d3cb57
MC
273extern const OSSL_DISPATCH x25519_keymgmt_functions[];
274extern const OSSL_DISPATCH x448_keymgmt_functions[];
af6d8dd3
MC
275extern const OSSL_DISPATCH ed25519_keymgmt_functions[];
276extern const OSSL_DISPATCH ed448_keymgmt_functions[];
4fe54d67 277extern const OSSL_DISPATCH ec_keymgmt_functions[];
8b84b075 278
89e29174 279/* Key Exchange */
8b84b075 280extern const OSSL_DISPATCH dh_keyexch_functions[];
6f7d2135
MC
281extern const OSSL_DISPATCH x25519_keyexch_functions[];
282extern const OSSL_DISPATCH x448_keyexch_functions[];
4fe54d67 283extern const OSSL_DISPATCH ecdh_keyexch_functions[];
4889dadc
MC
284
285/* Signature */
286extern const OSSL_DISPATCH dsa_signature_functions[];
6f4b7663 287extern const OSSL_DISPATCH rsa_signature_functions[];
3965480c
MC
288extern const OSSL_DISPATCH ed25519_signature_functions[];
289extern const OSSL_DISPATCH ed448_signature_functions[];
edd3b7a3
SL
290extern const OSSL_DISPATCH ecdsa_signature_functions[];
291
89abd1b6
MC
292
293/* Asym Cipher */
294extern const OSSL_DISPATCH rsa_asym_cipher_functions[];
677add38
RL
295
296/* Serializers */
297extern const OSSL_DISPATCH rsa_priv_text_serializer_functions[];
298extern const OSSL_DISPATCH rsa_pub_text_serializer_functions[];
299extern const OSSL_DISPATCH rsa_priv_der_serializer_functions[];
300extern const OSSL_DISPATCH rsa_pub_der_serializer_functions[];
301extern const OSSL_DISPATCH rsa_priv_pem_serializer_functions[];
302extern const OSSL_DISPATCH rsa_pub_pem_serializer_functions[];
8efc4a9c 303
045e51cb
RL
304extern const OSSL_DISPATCH dh_priv_text_serializer_functions[];
305extern const OSSL_DISPATCH dh_pub_text_serializer_functions[];
306extern const OSSL_DISPATCH dh_param_text_serializer_functions[];
307extern const OSSL_DISPATCH dh_priv_der_serializer_functions[];
308extern const OSSL_DISPATCH dh_pub_der_serializer_functions[];
309extern const OSSL_DISPATCH dh_param_der_serializer_functions[];
310extern const OSSL_DISPATCH dh_priv_pem_serializer_functions[];
311extern const OSSL_DISPATCH dh_pub_pem_serializer_functions[];
312extern const OSSL_DISPATCH dh_param_pem_serializer_functions[];
8efc4a9c 313
264b789b
RL
314extern const OSSL_DISPATCH dsa_priv_text_serializer_functions[];
315extern const OSSL_DISPATCH dsa_pub_text_serializer_functions[];
316extern const OSSL_DISPATCH dsa_param_text_serializer_functions[];
317extern const OSSL_DISPATCH dsa_priv_der_serializer_functions[];
318extern const OSSL_DISPATCH dsa_pub_der_serializer_functions[];
319extern const OSSL_DISPATCH dsa_param_der_serializer_functions[];
320extern const OSSL_DISPATCH dsa_priv_pem_serializer_functions[];
321extern const OSSL_DISPATCH dsa_pub_pem_serializer_functions[];
322extern const OSSL_DISPATCH dsa_param_pem_serializer_functions[];
8efc4a9c
MC
323
324extern const OSSL_DISPATCH x25519_priv_print_serializer_functions[];
325extern const OSSL_DISPATCH x25519_pub_print_serializer_functions[];
326extern const OSSL_DISPATCH x25519_priv_der_serializer_functions[];
327extern const OSSL_DISPATCH x25519_pub_der_serializer_functions[];
328extern const OSSL_DISPATCH x25519_priv_pem_serializer_functions[];
329extern const OSSL_DISPATCH x25519_pub_pem_serializer_functions[];
330
331extern const OSSL_DISPATCH x448_priv_print_serializer_functions[];
332extern const OSSL_DISPATCH x448_pub_print_serializer_functions[];
333extern const OSSL_DISPATCH x448_priv_der_serializer_functions[];
334extern const OSSL_DISPATCH x448_pub_der_serializer_functions[];
335extern const OSSL_DISPATCH x448_priv_pem_serializer_functions[];
336extern const OSSL_DISPATCH x448_pub_pem_serializer_functions[];
f552d900 337
244bc297
MC
338extern const OSSL_DISPATCH ed25519_priv_print_serializer_functions[];
339extern const OSSL_DISPATCH ed25519_pub_print_serializer_functions[];
340extern const OSSL_DISPATCH ed25519_priv_der_serializer_functions[];
341extern const OSSL_DISPATCH ed25519_pub_der_serializer_functions[];
342extern const OSSL_DISPATCH ed25519_priv_pem_serializer_functions[];
343extern const OSSL_DISPATCH ed25519_pub_pem_serializer_functions[];
344
345extern const OSSL_DISPATCH ed448_priv_print_serializer_functions[];
346extern const OSSL_DISPATCH ed448_pub_print_serializer_functions[];
347extern const OSSL_DISPATCH ed448_priv_der_serializer_functions[];
348extern const OSSL_DISPATCH ed448_pub_der_serializer_functions[];
349extern const OSSL_DISPATCH ed448_priv_pem_serializer_functions[];
350extern const OSSL_DISPATCH ed448_pub_pem_serializer_functions[];
351
f552d900
SL
352extern const OSSL_DISPATCH ec_priv_text_serializer_functions[];
353extern const OSSL_DISPATCH ec_pub_text_serializer_functions[];
354extern const OSSL_DISPATCH ec_param_text_serializer_functions[];
355extern const OSSL_DISPATCH ec_priv_der_serializer_functions[];
356extern const OSSL_DISPATCH ec_pub_der_serializer_functions[];
357extern const OSSL_DISPATCH ec_param_der_serializer_functions[];
358extern const OSSL_DISPATCH ec_priv_pem_serializer_functions[];
359extern const OSSL_DISPATCH ec_pub_pem_serializer_functions[];
360extern const OSSL_DISPATCH ec_param_pem_serializer_functions[];