]> git.ipfire.org Git - thirdparty/openssl.git/blame - providers/implementations/include/prov/implementations.h
providers: add Argon2 KDF
[thirdparty/openssl.git] / providers / implementations / include / prov / implementations.h
CommitLineData
861b8f87 1/*
a28d06f3 2 * Copyright 2019-2021 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 */
1be63951
P
14extern const OSSL_DISPATCH ossl_sha1_functions[];
15extern const OSSL_DISPATCH ossl_sha224_functions[];
16extern const OSSL_DISPATCH ossl_sha256_functions[];
17extern const OSSL_DISPATCH ossl_sha384_functions[];
18extern const OSSL_DISPATCH ossl_sha512_functions[];
19extern const OSSL_DISPATCH ossl_sha512_224_functions[];
20extern const OSSL_DISPATCH ossl_sha512_256_functions[];
21extern const OSSL_DISPATCH ossl_sha3_224_functions[];
22extern const OSSL_DISPATCH ossl_sha3_256_functions[];
23extern const OSSL_DISPATCH ossl_sha3_384_functions[];
24extern const OSSL_DISPATCH ossl_sha3_512_functions[];
524f1261
UM
25extern const OSSL_DISPATCH ossl_keccak_224_functions[];
26extern const OSSL_DISPATCH ossl_keccak_256_functions[];
27extern const OSSL_DISPATCH ossl_keccak_384_functions[];
28extern const OSSL_DISPATCH ossl_keccak_512_functions[];
1be63951
P
29extern const OSSL_DISPATCH ossl_keccak_kmac_128_functions[];
30extern const OSSL_DISPATCH ossl_keccak_kmac_256_functions[];
31extern const OSSL_DISPATCH ossl_shake_128_functions[];
32extern const OSSL_DISPATCH ossl_shake_256_functions[];
33extern const OSSL_DISPATCH ossl_blake2s256_functions[];
34extern const OSSL_DISPATCH ossl_blake2b512_functions[];
35extern const OSSL_DISPATCH ossl_md5_functions[];
36extern const OSSL_DISPATCH ossl_md5_sha1_functions[];
37extern const OSSL_DISPATCH ossl_sm3_functions[];
38extern const OSSL_DISPATCH ossl_md2_functions[];
39extern const OSSL_DISPATCH ossl_md4_functions[];
40extern const OSSL_DISPATCH ossl_mdc2_functions[];
41extern const OSSL_DISPATCH ossl_wp_functions[];
42extern const OSSL_DISPATCH ossl_ripemd160_functions[];
bef9b48e 43extern const OSSL_DISPATCH ossl_nullmd_functions[];
861b8f87
MC
44
45/* Ciphers */
1be63951
P
46extern const OSSL_DISPATCH ossl_null_functions[];
47extern const OSSL_DISPATCH ossl_aes256ecb_functions[];
48extern const OSSL_DISPATCH ossl_aes192ecb_functions[];
49extern const OSSL_DISPATCH ossl_aes128ecb_functions[];
50extern const OSSL_DISPATCH ossl_aes256cbc_functions[];
51extern const OSSL_DISPATCH ossl_aes192cbc_functions[];
52extern const OSSL_DISPATCH ossl_aes128cbc_functions[];
53extern const OSSL_DISPATCH ossl_aes256cbc_cts_functions[];
54extern const OSSL_DISPATCH ossl_aes192cbc_cts_functions[];
55extern const OSSL_DISPATCH ossl_aes128cbc_cts_functions[];
56extern const OSSL_DISPATCH ossl_aes256ofb_functions[];
57extern const OSSL_DISPATCH ossl_aes192ofb_functions[];
58extern const OSSL_DISPATCH ossl_aes128ofb_functions[];
59extern const OSSL_DISPATCH ossl_aes256cfb_functions[];
60extern const OSSL_DISPATCH ossl_aes192cfb_functions[];
61extern const OSSL_DISPATCH ossl_aes128cfb_functions[];
62extern const OSSL_DISPATCH ossl_aes256cfb1_functions[];
63extern const OSSL_DISPATCH ossl_aes192cfb1_functions[];
64extern const OSSL_DISPATCH ossl_aes128cfb1_functions[];
65extern const OSSL_DISPATCH ossl_aes256cfb8_functions[];
66extern const OSSL_DISPATCH ossl_aes192cfb8_functions[];
67extern const OSSL_DISPATCH ossl_aes128cfb8_functions[];
68extern const OSSL_DISPATCH ossl_aes256ctr_functions[];
69extern const OSSL_DISPATCH ossl_aes192ctr_functions[];
70extern const OSSL_DISPATCH ossl_aes128ctr_functions[];
71extern const OSSL_DISPATCH ossl_aes256xts_functions[];
72extern const OSSL_DISPATCH ossl_aes128xts_functions[];
3837c202 73#ifndef OPENSSL_NO_OCB
1be63951
P
74extern const OSSL_DISPATCH ossl_aes256ocb_functions[];
75extern const OSSL_DISPATCH ossl_aes192ocb_functions[];
76extern const OSSL_DISPATCH ossl_aes128ocb_functions[];
3837c202 77#endif /* OPENSSL_NO_OCB */
1be63951
P
78extern const OSSL_DISPATCH ossl_aes256gcm_functions[];
79extern const OSSL_DISPATCH ossl_aes192gcm_functions[];
80extern const OSSL_DISPATCH ossl_aes128gcm_functions[];
81extern const OSSL_DISPATCH ossl_aes256ccm_functions[];
82extern const OSSL_DISPATCH ossl_aes192ccm_functions[];
83extern const OSSL_DISPATCH ossl_aes128ccm_functions[];
84extern const OSSL_DISPATCH ossl_aes256wrap_functions[];
85extern const OSSL_DISPATCH ossl_aes192wrap_functions[];
86extern const OSSL_DISPATCH ossl_aes128wrap_functions[];
87extern const OSSL_DISPATCH ossl_aes256wrappad_functions[];
88extern const OSSL_DISPATCH ossl_aes192wrappad_functions[];
89extern const OSSL_DISPATCH ossl_aes128wrappad_functions[];
8ea761bf
SL
90extern const OSSL_DISPATCH ossl_aes256wrapinv_functions[];
91extern const OSSL_DISPATCH ossl_aes192wrapinv_functions[];
92extern const OSSL_DISPATCH ossl_aes128wrapinv_functions[];
93extern const OSSL_DISPATCH ossl_aes256wrappadinv_functions[];
94extern const OSSL_DISPATCH ossl_aes192wrappadinv_functions[];
95extern const OSSL_DISPATCH ossl_aes128wrappadinv_functions[];
1be63951
P
96extern const OSSL_DISPATCH ossl_aes256cbc_hmac_sha1_functions[];
97extern const OSSL_DISPATCH ossl_aes128cbc_hmac_sha1_functions[];
98extern const OSSL_DISPATCH ossl_aes256cbc_hmac_sha256_functions[];
99extern const OSSL_DISPATCH ossl_aes128cbc_hmac_sha256_functions[];
ca392b29 100
a672a02a 101#ifndef OPENSSL_NO_ARIA
1be63951
P
102extern const OSSL_DISPATCH ossl_aria256gcm_functions[];
103extern const OSSL_DISPATCH ossl_aria192gcm_functions[];
104extern const OSSL_DISPATCH ossl_aria128gcm_functions[];
105extern const OSSL_DISPATCH ossl_aria256ccm_functions[];
106extern const OSSL_DISPATCH ossl_aria192ccm_functions[];
107extern const OSSL_DISPATCH ossl_aria128ccm_functions[];
108extern const OSSL_DISPATCH ossl_aria256ecb_functions[];
109extern const OSSL_DISPATCH ossl_aria192ecb_functions[];
110extern const OSSL_DISPATCH ossl_aria128ecb_functions[];
111extern const OSSL_DISPATCH ossl_aria256cbc_functions[];
112extern const OSSL_DISPATCH ossl_aria192cbc_functions[];
113extern const OSSL_DISPATCH ossl_aria128cbc_functions[];
114extern const OSSL_DISPATCH ossl_aria256ofb_functions[];
115extern const OSSL_DISPATCH ossl_aria192ofb_functions[];
116extern const OSSL_DISPATCH ossl_aria128ofb_functions[];
117extern const OSSL_DISPATCH ossl_aria256cfb_functions[];
118extern const OSSL_DISPATCH ossl_aria192cfb_functions[];
119extern const OSSL_DISPATCH ossl_aria128cfb_functions[];
120extern const OSSL_DISPATCH ossl_aria256cfb1_functions[];
121extern const OSSL_DISPATCH ossl_aria192cfb1_functions[];
122extern const OSSL_DISPATCH ossl_aria128cfb1_functions[];
123extern const OSSL_DISPATCH ossl_aria256cfb8_functions[];
124extern const OSSL_DISPATCH ossl_aria192cfb8_functions[];
125extern const OSSL_DISPATCH ossl_aria128cfb8_functions[];
126extern const OSSL_DISPATCH ossl_aria256ctr_functions[];
127extern const OSSL_DISPATCH ossl_aria192ctr_functions[];
128extern const OSSL_DISPATCH ossl_aria128ctr_functions[];
a672a02a 129#endif /* OPENSSL_NO_ARIA */
e1178600 130#ifndef OPENSSL_NO_CAMELLIA
1be63951
P
131extern const OSSL_DISPATCH ossl_camellia256ecb_functions[];
132extern const OSSL_DISPATCH ossl_camellia192ecb_functions[];
133extern const OSSL_DISPATCH ossl_camellia128ecb_functions[];
134extern const OSSL_DISPATCH ossl_camellia256cbc_functions[];
135extern const OSSL_DISPATCH ossl_camellia192cbc_functions[];
136extern const OSSL_DISPATCH ossl_camellia128cbc_functions[];
7f5a9399
SL
137extern const OSSL_DISPATCH ossl_camellia256cbc_cts_functions[];
138extern const OSSL_DISPATCH ossl_camellia192cbc_cts_functions[];
139extern const OSSL_DISPATCH ossl_camellia128cbc_cts_functions[];
1be63951
P
140extern const OSSL_DISPATCH ossl_camellia256ofb_functions[];
141extern const OSSL_DISPATCH ossl_camellia192ofb_functions[];
142extern const OSSL_DISPATCH ossl_camellia128ofb_functions[];
143extern const OSSL_DISPATCH ossl_camellia256cfb_functions[];
144extern const OSSL_DISPATCH ossl_camellia192cfb_functions[];
145extern const OSSL_DISPATCH ossl_camellia128cfb_functions[];
146extern const OSSL_DISPATCH ossl_camellia256cfb1_functions[];
147extern const OSSL_DISPATCH ossl_camellia192cfb1_functions[];
148extern const OSSL_DISPATCH ossl_camellia128cfb1_functions[];
149extern const OSSL_DISPATCH ossl_camellia256cfb8_functions[];
150extern const OSSL_DISPATCH ossl_camellia192cfb8_functions[];
151extern const OSSL_DISPATCH ossl_camellia128cfb8_functions[];
152extern const OSSL_DISPATCH ossl_camellia256ctr_functions[];
153extern const OSSL_DISPATCH ossl_camellia192ctr_functions[];
154extern const OSSL_DISPATCH ossl_camellia128ctr_functions[];
e1178600 155#endif /* OPENSSL_NO_CAMELLIA */
55c7dc79 156#ifndef OPENSSL_NO_BF
1be63951
P
157extern const OSSL_DISPATCH ossl_blowfish128ecb_functions[];
158extern const OSSL_DISPATCH ossl_blowfish128cbc_functions[];
7a9e93dd
TM
159extern const OSSL_DISPATCH ossl_blowfish128ofb64_functions[];
160extern const OSSL_DISPATCH ossl_blowfish128cfb64_functions[];
55c7dc79 161#endif /* OPENSSL_NO_BF */
f22431f2 162#ifndef OPENSSL_NO_IDEA
1be63951
P
163extern const OSSL_DISPATCH ossl_idea128ecb_functions[];
164extern const OSSL_DISPATCH ossl_idea128cbc_functions[];
165extern const OSSL_DISPATCH ossl_idea128ofb64_functions[];
166extern const OSSL_DISPATCH ossl_idea128cfb64_functions[];
f22431f2 167#endif /* OPENSSL_NO_IDEA */
18b00427 168#ifndef OPENSSL_NO_CAST
1be63951
P
169extern const OSSL_DISPATCH ossl_cast5128ecb_functions[];
170extern const OSSL_DISPATCH ossl_cast5128cbc_functions[];
171extern const OSSL_DISPATCH ossl_cast5128ofb64_functions[];
172extern const OSSL_DISPATCH ossl_cast5128cfb64_functions[];
18b00427 173#endif /* OPENSSL_NO_CAST */
70adc646 174#ifndef OPENSSL_NO_SEED
1be63951
P
175extern const OSSL_DISPATCH ossl_seed128ecb_functions[];
176extern const OSSL_DISPATCH ossl_seed128cbc_functions[];
177extern const OSSL_DISPATCH ossl_seed128ofb128_functions[];
178extern const OSSL_DISPATCH ossl_seed128cfb128_functions[];
70adc646 179#endif /* OPENSSL_NO_SEED */
105dde25 180#ifndef OPENSSL_NO_SM4
c2ee608a
TZ
181extern const OSSL_DISPATCH ossl_sm4128gcm_functions[];
182extern const OSSL_DISPATCH ossl_sm4128ccm_functions[];
1be63951
P
183extern const OSSL_DISPATCH ossl_sm4128ecb_functions[];
184extern const OSSL_DISPATCH ossl_sm4128cbc_functions[];
185extern const OSSL_DISPATCH ossl_sm4128ctr_functions[];
186extern const OSSL_DISPATCH ossl_sm4128ofb128_functions[];
187extern const OSSL_DISPATCH ossl_sm4128cfb128_functions[];
2788b56f 188extern const OSSL_DISPATCH ossl_sm4128xts_functions[];
105dde25 189#endif /* OPENSSL_NO_SM4 */
6a41156c 190#ifndef OPENSSL_NO_RC5
1be63951
P
191extern const OSSL_DISPATCH ossl_rc5128ecb_functions[];
192extern const OSSL_DISPATCH ossl_rc5128cbc_functions[];
193extern const OSSL_DISPATCH ossl_rc5128ofb64_functions[];
194extern const OSSL_DISPATCH ossl_rc5128cfb64_functions[];
6a41156c 195#endif /* OPENSSL_NO_RC5 */
f816aa47 196#ifndef OPENSSL_NO_RC2
1be63951
P
197extern const OSSL_DISPATCH ossl_rc2128ecb_functions[];
198extern const OSSL_DISPATCH ossl_rc2128cbc_functions[];
199extern const OSSL_DISPATCH ossl_rc240cbc_functions[];
200extern const OSSL_DISPATCH ossl_rc264cbc_functions[];
201extern const OSSL_DISPATCH ossl_rc2128cfb128_functions[];
202extern const OSSL_DISPATCH ossl_rc2128ofb128_functions[];
f816aa47 203#endif /* OPENSSL_NO_RC2 */
e3f3ee44 204#ifndef OPENSSL_NO_DES
1be63951
P
205extern const OSSL_DISPATCH ossl_tdes_ede3_ecb_functions[];
206extern const OSSL_DISPATCH ossl_tdes_ede3_cbc_functions[];
f844f9eb 207# ifndef FIPS_MODULE
1be63951
P
208extern const OSSL_DISPATCH ossl_tdes_ede3_ofb_functions[];
209extern const OSSL_DISPATCH ossl_tdes_ede3_cfb_functions[];
210extern const OSSL_DISPATCH ossl_tdes_ede3_cfb8_functions[];
211extern const OSSL_DISPATCH ossl_tdes_ede3_cfb1_functions[];
4a42e264 212
1be63951
P
213extern const OSSL_DISPATCH ossl_tdes_ede2_ecb_functions[];
214extern const OSSL_DISPATCH ossl_tdes_ede2_cbc_functions[];
215extern const OSSL_DISPATCH ossl_tdes_ede2_ofb_functions[];
216extern const OSSL_DISPATCH ossl_tdes_ede2_cfb_functions[];
4a42e264 217
1be63951
P
218extern const OSSL_DISPATCH ossl_tdes_desx_cbc_functions[];
219extern const OSSL_DISPATCH ossl_tdes_wrap_cbc_functions[];
e3f3ee44 220
1be63951
P
221extern const OSSL_DISPATCH ossl_des_ecb_functions[];
222extern const OSSL_DISPATCH ossl_des_cbc_functions[];
223extern const OSSL_DISPATCH ossl_des_ofb64_functions[];
224extern const OSSL_DISPATCH ossl_des_cfb64_functions[];
225extern const OSSL_DISPATCH ossl_des_cfb1_functions[];
226extern const OSSL_DISPATCH ossl_des_cfb8_functions[];
f844f9eb 227# endif /* FIPS_MODULE */
e3f3ee44 228#endif /* OPENSSL_NO_DES */
4a42e264 229
bafde183 230#ifndef OPENSSL_NO_RC4
1be63951
P
231extern const OSSL_DISPATCH ossl_rc440_functions[];
232extern const OSSL_DISPATCH ossl_rc4128_functions[];
8fece335 233# ifndef OPENSSL_NO_MD5
1be63951 234extern const OSSL_DISPATCH ossl_rc4_hmac_ossl_md5_functions[];
8fece335 235# endif /* OPENSSL_NO_MD5 */
bafde183 236#endif /* OPENSSL_NO_RC4 */
3d5a7578 237#ifndef OPENSSL_NO_CHACHA
1be63951 238extern const OSSL_DISPATCH ossl_chacha20_functions[];
3d5a7578 239# ifndef OPENSSL_NO_POLY1305
1be63951 240extern const OSSL_DISPATCH ossl_chacha20_ossl_poly1305_functions[];
3d5a7578
SL
241# endif /* OPENSSL_NO_POLY1305 */
242#endif /* OPENSSL_NO_CHACHA */
243
bafde183 244
eb173822 245#ifndef OPENSSL_NO_SIV
1be63951
P
246extern const OSSL_DISPATCH ossl_aes128siv_functions[];
247extern const OSSL_DISPATCH ossl_aes192siv_functions[];
248extern const OSSL_DISPATCH ossl_aes256siv_functions[];
0113ec84
TS
249extern const OSSL_DISPATCH ossl_aes128gcm_siv_functions[];
250extern const OSSL_DISPATCH ossl_aes192gcm_siv_functions[];
251extern const OSSL_DISPATCH ossl_aes256gcm_siv_functions[];
eb173822
SL
252#endif /* OPENSSL_NO_SIV */
253
e3405a4a 254/* MACs */
1be63951
P
255extern const OSSL_DISPATCH ossl_blake2bmac_functions[];
256extern const OSSL_DISPATCH ossl_blake2smac_functions[];
257extern const OSSL_DISPATCH ossl_cmac_functions[];
258extern const OSSL_DISPATCH ossl_gmac_functions[];
259extern const OSSL_DISPATCH ossl_hmac_functions[];
260extern const OSSL_DISPATCH ossl_kmac128_functions[];
261extern const OSSL_DISPATCH ossl_kmac256_functions[];
262extern const OSSL_DISPATCH ossl_siphash_functions[];
263extern const OSSL_DISPATCH ossl_poly1305_functions[];
e3405a4a
P
264
265/* KDFs / PRFs */
0f183675 266extern const OSSL_DISPATCH ossl_kdf_pbkdf1_functions[];
1be63951 267extern const OSSL_DISPATCH ossl_kdf_pbkdf2_functions[];
722fe8ed 268extern const OSSL_DISPATCH ossl_kdf_pvk_functions[];
1be63951 269extern const OSSL_DISPATCH ossl_kdf_pkcs12_functions[];
e3405a4a 270#ifndef OPENSSL_NO_SCRYPT
1be63951 271extern const OSSL_DISPATCH ossl_kdf_scrypt_functions[];
e3405a4a 272#endif
1be63951
P
273extern const OSSL_DISPATCH ossl_kdf_tls1_prf_functions[];
274extern const OSSL_DISPATCH ossl_kdf_hkdf_functions[];
f7d998a2 275extern const OSSL_DISPATCH ossl_kdf_tls1_3_kdf_functions[];
1be63951
P
276extern const OSSL_DISPATCH ossl_kdf_sshkdf_functions[];
277extern const OSSL_DISPATCH ossl_kdf_sskdf_functions[];
278extern const OSSL_DISPATCH ossl_kdf_x963_kdf_functions[];
279extern const OSSL_DISPATCH ossl_kdf_kbkdf_functions[];
1be63951 280extern const OSSL_DISPATCH ossl_kdf_x942_kdf_functions[];
1be63951 281extern const OSSL_DISPATCH ossl_kdf_krb5kdf_functions[];
f3090fc7 282extern const OSSL_DISPATCH ossl_kdf_hmac_drbg_functions[];
6dfa998f
ÄŒK
283#ifndef OPENSSL_NO_ARGON2
284extern const OSSL_DISPATCH ossl_kdf_argon2i_functions[];
285extern const OSSL_DISPATCH ossl_kdf_argon2d_functions[];
286extern const OSSL_DISPATCH ossl_kdf_argon2id_functions[];
287#endif
e3405a4a 288
714a1bb3 289/* RNGs */
1be63951 290extern const OSSL_DISPATCH ossl_test_rng_functions[];
81aef6ba 291extern const OSSL_DISPATCH ossl_seed_src_functions[];
1be63951
P
292extern const OSSL_DISPATCH ossl_drbg_hash_functions[];
293extern const OSSL_DISPATCH ossl_drbg_ossl_hmac_functions[];
294extern const OSSL_DISPATCH ossl_drbg_ctr_functions[];
714a1bb3 295extern const OSSL_DISPATCH crngt_functions[];
e3405a4a 296
8b84b075 297/* Key management */
1be63951
P
298extern const OSSL_DISPATCH ossl_dh_keymgmt_functions[];
299extern const OSSL_DISPATCH ossl_dhx_keymgmt_functions[];
300extern const OSSL_DISPATCH ossl_dsa_keymgmt_functions[];
301extern const OSSL_DISPATCH ossl_rsa_keymgmt_functions[];
302extern const OSSL_DISPATCH ossl_rsapss_keymgmt_functions[];
303extern const OSSL_DISPATCH ossl_x25519_keymgmt_functions[];
304extern const OSSL_DISPATCH ossl_x448_keymgmt_functions[];
305extern const OSSL_DISPATCH ossl_ed25519_keymgmt_functions[];
306extern const OSSL_DISPATCH ossl_ed448_keymgmt_functions[];
307extern const OSSL_DISPATCH ossl_ec_keymgmt_functions[];
308extern const OSSL_DISPATCH ossl_kdf_keymgmt_functions[];
309extern const OSSL_DISPATCH ossl_mac_legacy_keymgmt_functions[];
e2f5df36 310extern const OSSL_DISPATCH ossl_cmac_legacy_keymgmt_functions[];
7ee511d0 311#ifndef OPENSSL_NO_SM2
58f422f6 312extern const OSSL_DISPATCH ossl_sm2_keymgmt_functions[];
7ee511d0 313#endif
8b84b075 314
89e29174 315/* Key Exchange */
1be63951
P
316extern const OSSL_DISPATCH ossl_dh_keyexch_functions[];
317extern const OSSL_DISPATCH ossl_x25519_keyexch_functions[];
318extern const OSSL_DISPATCH ossl_x448_keyexch_functions[];
58f422f6 319extern const OSSL_DISPATCH ossl_ecdh_keyexch_functions[];
1be63951
P
320extern const OSSL_DISPATCH ossl_kdf_tls1_prf_keyexch_functions[];
321extern const OSSL_DISPATCH ossl_kdf_hkdf_keyexch_functions[];
322extern const OSSL_DISPATCH ossl_kdf_scrypt_keyexch_functions[];
4889dadc
MC
323
324/* Signature */
1be63951
P
325extern const OSSL_DISPATCH ossl_dsa_signature_functions[];
326extern const OSSL_DISPATCH ossl_rsa_signature_functions[];
327extern const OSSL_DISPATCH ossl_ed25519_signature_functions[];
328extern const OSSL_DISPATCH ossl_ed448_signature_functions[];
58f422f6 329extern const OSSL_DISPATCH ossl_ecdsa_signature_functions[];
1be63951
P
330extern const OSSL_DISPATCH ossl_mac_legacy_hmac_signature_functions[];
331extern const OSSL_DISPATCH ossl_mac_legacy_siphash_signature_functions[];
332extern const OSSL_DISPATCH ossl_mac_legacy_poly1305_signature_functions[];
333extern const OSSL_DISPATCH ossl_mac_legacy_cmac_signature_functions[];
58f422f6 334extern const OSSL_DISPATCH ossl_sm2_signature_functions[];
89abd1b6
MC
335
336/* Asym Cipher */
1be63951 337extern const OSSL_DISPATCH ossl_rsa_asym_cipher_functions[];
ce64d3ee 338#ifndef OPENSSL_NO_SM2
58f422f6 339extern const OSSL_DISPATCH ossl_sm2_asym_cipher_functions[];
ce64d3ee 340#endif
677add38 341
80f4fd18 342/* Asym Key encapsulation */
1be63951 343extern const OSSL_DISPATCH ossl_rsa_asym_kem_functions[];
78c44b05 344extern const OSSL_DISPATCH ossl_ecx_asym_kem_functions[];
345extern const OSSL_DISPATCH ossl_ec_asym_kem_functions[];
80f4fd18 346
ece9304c 347/* Encoders */
c319b627
RL
348extern const OSSL_DISPATCH ossl_rsa_to_PKCS1_der_encoder_functions[];
349extern const OSSL_DISPATCH ossl_rsa_to_PKCS1_pem_encoder_functions[];
0195cdd2
RL
350extern const OSSL_DISPATCH ossl_rsa_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
351extern const OSSL_DISPATCH ossl_rsa_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
6a2b8ff3
RL
352extern const OSSL_DISPATCH ossl_rsa_to_PrivateKeyInfo_der_encoder_functions[];
353extern const OSSL_DISPATCH ossl_rsa_to_PrivateKeyInfo_pem_encoder_functions[];
c319b627
RL
354extern const OSSL_DISPATCH ossl_rsa_to_RSA_der_encoder_functions[];
355extern const OSSL_DISPATCH ossl_rsa_to_RSA_pem_encoder_functions[];
356extern const OSSL_DISPATCH ossl_rsa_to_SubjectPublicKeyInfo_der_encoder_functions[];
357extern const OSSL_DISPATCH ossl_rsa_to_SubjectPublicKeyInfo_pem_encoder_functions[];
0cc0164d
RL
358extern const OSSL_DISPATCH ossl_rsa_to_msblob_encoder_functions[];
359extern const OSSL_DISPATCH ossl_rsa_to_pvk_encoder_functions[];
1be63951 360extern const OSSL_DISPATCH ossl_rsa_to_text_encoder_functions[];
c319b627
RL
361extern const OSSL_DISPATCH ossl_rsa_to_type_specific_keypair_der_encoder_functions[];
362extern const OSSL_DISPATCH ossl_rsa_to_type_specific_keypair_pem_encoder_functions[];
8efc4a9c 363
c319b627
RL
364extern const OSSL_DISPATCH ossl_rsapss_to_PKCS1_der_encoder_functions[];
365extern const OSSL_DISPATCH ossl_rsapss_to_PKCS1_pem_encoder_functions[];
0195cdd2
RL
366extern const OSSL_DISPATCH ossl_rsapss_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
367extern const OSSL_DISPATCH ossl_rsapss_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
6a2b8ff3
RL
368extern const OSSL_DISPATCH ossl_rsapss_to_PrivateKeyInfo_der_encoder_functions[];
369extern const OSSL_DISPATCH ossl_rsapss_to_PrivateKeyInfo_pem_encoder_functions[];
c319b627
RL
370extern const OSSL_DISPATCH ossl_rsapss_to_SubjectPublicKeyInfo_der_encoder_functions[];
371extern const OSSL_DISPATCH ossl_rsapss_to_SubjectPublicKeyInfo_pem_encoder_functions[];
1be63951 372extern const OSSL_DISPATCH ossl_rsapss_to_text_encoder_functions[];
8efc4a9c 373
c319b627
RL
374extern const OSSL_DISPATCH ossl_dh_to_DH_der_encoder_functions[];
375extern const OSSL_DISPATCH ossl_dh_to_DH_pem_encoder_functions[];
376extern const OSSL_DISPATCH ossl_dh_to_PKCS3_der_encoder_functions[];
377extern const OSSL_DISPATCH ossl_dh_to_PKCS3_pem_encoder_functions[];
0195cdd2
RL
378extern const OSSL_DISPATCH ossl_dh_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
379extern const OSSL_DISPATCH ossl_dh_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
6a2b8ff3
RL
380extern const OSSL_DISPATCH ossl_dh_to_PrivateKeyInfo_der_encoder_functions[];
381extern const OSSL_DISPATCH ossl_dh_to_PrivateKeyInfo_pem_encoder_functions[];
c319b627
RL
382extern const OSSL_DISPATCH ossl_dh_to_SubjectPublicKeyInfo_der_encoder_functions[];
383extern const OSSL_DISPATCH ossl_dh_to_SubjectPublicKeyInfo_pem_encoder_functions[];
384extern const OSSL_DISPATCH ossl_dh_to_type_specific_params_der_encoder_functions[];
385extern const OSSL_DISPATCH ossl_dh_to_type_specific_params_pem_encoder_functions[];
1be63951 386extern const OSSL_DISPATCH ossl_dh_to_text_encoder_functions[];
8efc4a9c 387
c319b627
RL
388extern const OSSL_DISPATCH ossl_dhx_to_DHX_der_encoder_functions[];
389extern const OSSL_DISPATCH ossl_dhx_to_DHX_pem_encoder_functions[];
0195cdd2
RL
390extern const OSSL_DISPATCH ossl_dhx_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
391extern const OSSL_DISPATCH ossl_dhx_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
6a2b8ff3
RL
392extern const OSSL_DISPATCH ossl_dhx_to_PrivateKeyInfo_der_encoder_functions[];
393extern const OSSL_DISPATCH ossl_dhx_to_PrivateKeyInfo_pem_encoder_functions[];
c319b627
RL
394extern const OSSL_DISPATCH ossl_dhx_to_SubjectPublicKeyInfo_der_encoder_functions[];
395extern const OSSL_DISPATCH ossl_dhx_to_SubjectPublicKeyInfo_pem_encoder_functions[];
396extern const OSSL_DISPATCH ossl_dhx_to_X9_42_der_encoder_functions[];
397extern const OSSL_DISPATCH ossl_dhx_to_X9_42_pem_encoder_functions[];
398extern const OSSL_DISPATCH ossl_dhx_to_type_specific_params_der_encoder_functions[];
399extern const OSSL_DISPATCH ossl_dhx_to_type_specific_params_pem_encoder_functions[];
1be63951 400extern const OSSL_DISPATCH ossl_dhx_to_text_encoder_functions[];
8efc4a9c 401
c319b627
RL
402extern const OSSL_DISPATCH ossl_dsa_to_DSA_der_encoder_functions[];
403extern const OSSL_DISPATCH ossl_dsa_to_DSA_pem_encoder_functions[];
0195cdd2
RL
404extern const OSSL_DISPATCH ossl_dsa_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
405extern const OSSL_DISPATCH ossl_dsa_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
6a2b8ff3
RL
406extern const OSSL_DISPATCH ossl_dsa_to_PrivateKeyInfo_der_encoder_functions[];
407extern const OSSL_DISPATCH ossl_dsa_to_PrivateKeyInfo_pem_encoder_functions[];
c319b627
RL
408extern const OSSL_DISPATCH ossl_dsa_to_SubjectPublicKeyInfo_der_encoder_functions[];
409extern const OSSL_DISPATCH ossl_dsa_to_SubjectPublicKeyInfo_pem_encoder_functions[];
410extern const OSSL_DISPATCH ossl_dsa_to_type_specific_pem_encoder_functions[];
411extern const OSSL_DISPATCH ossl_dsa_to_type_specific_der_encoder_functions[];
0cc0164d
RL
412extern const OSSL_DISPATCH ossl_dsa_to_msblob_encoder_functions[];
413extern const OSSL_DISPATCH ossl_dsa_to_pvk_encoder_functions[];
1be63951 414extern const OSSL_DISPATCH ossl_dsa_to_text_encoder_functions[];
f552d900 415
c319b627
RL
416extern const OSSL_DISPATCH ossl_ec_to_EC_der_encoder_functions[];
417extern const OSSL_DISPATCH ossl_ec_to_EC_pem_encoder_functions[];
c8182743 418extern const OSSL_DISPATCH ossl_ec_to_blob_encoder_functions[];
0195cdd2
RL
419extern const OSSL_DISPATCH ossl_ec_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
420extern const OSSL_DISPATCH ossl_ec_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
6a2b8ff3
RL
421extern const OSSL_DISPATCH ossl_ec_to_PrivateKeyInfo_der_encoder_functions[];
422extern const OSSL_DISPATCH ossl_ec_to_PrivateKeyInfo_pem_encoder_functions[];
c319b627
RL
423extern const OSSL_DISPATCH ossl_ec_to_SubjectPublicKeyInfo_der_encoder_functions[];
424extern const OSSL_DISPATCH ossl_ec_to_SubjectPublicKeyInfo_pem_encoder_functions[];
425extern const OSSL_DISPATCH ossl_ec_to_X9_62_der_encoder_functions[];
426extern const OSSL_DISPATCH ossl_ec_to_X9_62_pem_encoder_functions[];
427extern const OSSL_DISPATCH ossl_ec_to_type_specific_no_pub_pem_encoder_functions[];
428extern const OSSL_DISPATCH ossl_ec_to_type_specific_no_pub_der_encoder_functions[];
429extern const OSSL_DISPATCH ossl_ec_to_text_encoder_functions[];
244bc297 430
f2db0528
RL
431#ifndef OPENSSL_NO_SM2
432extern const OSSL_DISPATCH ossl_sm2_to_SM2_der_encoder_functions[];
433extern const OSSL_DISPATCH ossl_sm2_to_SM2_pem_encoder_functions[];
c8182743 434extern const OSSL_DISPATCH ossl_sm2_to_blob_encoder_functions[];
0195cdd2
RL
435extern const OSSL_DISPATCH ossl_sm2_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
436extern const OSSL_DISPATCH ossl_sm2_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
6a2b8ff3
RL
437extern const OSSL_DISPATCH ossl_sm2_to_PrivateKeyInfo_der_encoder_functions[];
438extern const OSSL_DISPATCH ossl_sm2_to_PrivateKeyInfo_pem_encoder_functions[];
f2db0528
RL
439extern const OSSL_DISPATCH ossl_sm2_to_SubjectPublicKeyInfo_der_encoder_functions[];
440extern const OSSL_DISPATCH ossl_sm2_to_SubjectPublicKeyInfo_pem_encoder_functions[];
441extern const OSSL_DISPATCH ossl_sm2_to_type_specific_no_pub_pem_encoder_functions[];
442extern const OSSL_DISPATCH ossl_sm2_to_type_specific_no_pub_der_encoder_functions[];
443extern const OSSL_DISPATCH ossl_sm2_to_text_encoder_functions[];
444#endif
445
0195cdd2
RL
446extern const OSSL_DISPATCH ossl_ed25519_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
447extern const OSSL_DISPATCH ossl_ed25519_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
6a2b8ff3
RL
448extern const OSSL_DISPATCH ossl_ed25519_to_PrivateKeyInfo_der_encoder_functions[];
449extern const OSSL_DISPATCH ossl_ed25519_to_PrivateKeyInfo_pem_encoder_functions[];
c319b627
RL
450extern const OSSL_DISPATCH ossl_ed25519_to_SubjectPublicKeyInfo_der_encoder_functions[];
451extern const OSSL_DISPATCH ossl_ed25519_to_SubjectPublicKeyInfo_pem_encoder_functions[];
452extern const OSSL_DISPATCH ossl_ed25519_to_OSSL_current_der_encoder_functions[];
1be63951 453extern const OSSL_DISPATCH ossl_ed25519_to_text_encoder_functions[];
111dc4b0 454
0195cdd2
RL
455extern const OSSL_DISPATCH ossl_ed448_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
456extern const OSSL_DISPATCH ossl_ed448_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
6a2b8ff3
RL
457extern const OSSL_DISPATCH ossl_ed448_to_PrivateKeyInfo_der_encoder_functions[];
458extern const OSSL_DISPATCH ossl_ed448_to_PrivateKeyInfo_pem_encoder_functions[];
c319b627
RL
459extern const OSSL_DISPATCH ossl_ed448_to_SubjectPublicKeyInfo_der_encoder_functions[];
460extern const OSSL_DISPATCH ossl_ed448_to_SubjectPublicKeyInfo_pem_encoder_functions[];
461extern const OSSL_DISPATCH ossl_ed448_to_OSSL_current_der_encoder_functions[];
1be63951 462extern const OSSL_DISPATCH ossl_ed448_to_text_encoder_functions[];
111dc4b0 463
0195cdd2
RL
464extern const OSSL_DISPATCH ossl_x25519_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
465extern const OSSL_DISPATCH ossl_x25519_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
6a2b8ff3
RL
466extern const OSSL_DISPATCH ossl_x25519_to_PrivateKeyInfo_der_encoder_functions[];
467extern const OSSL_DISPATCH ossl_x25519_to_PrivateKeyInfo_pem_encoder_functions[];
c319b627
RL
468extern const OSSL_DISPATCH ossl_x25519_to_SubjectPublicKeyInfo_der_encoder_functions[];
469extern const OSSL_DISPATCH ossl_x25519_to_SubjectPublicKeyInfo_pem_encoder_functions[];
470extern const OSSL_DISPATCH ossl_x25519_to_OSSL_current_der_encoder_functions[];
471extern const OSSL_DISPATCH ossl_x25519_to_text_encoder_functions[];
472
0195cdd2
RL
473extern const OSSL_DISPATCH ossl_x448_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
474extern const OSSL_DISPATCH ossl_x448_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
6a2b8ff3
RL
475extern const OSSL_DISPATCH ossl_x448_to_PrivateKeyInfo_der_encoder_functions[];
476extern const OSSL_DISPATCH ossl_x448_to_PrivateKeyInfo_pem_encoder_functions[];
c319b627
RL
477extern const OSSL_DISPATCH ossl_x448_to_SubjectPublicKeyInfo_der_encoder_functions[];
478extern const OSSL_DISPATCH ossl_x448_to_SubjectPublicKeyInfo_pem_encoder_functions[];
479extern const OSSL_DISPATCH ossl_x448_to_OSSL_current_der_encoder_functions[];
480extern const OSSL_DISPATCH ossl_x448_to_text_encoder_functions[];
1017b8e4 481
8ae40cf5 482/* Decoders */
6a2b8ff3 483extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_dh_decoder_functions[];
2c090c1d
RL
484extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_dh_decoder_functions[];
485extern const OSSL_DISPATCH ossl_type_specific_params_der_to_dh_decoder_functions[];
486extern const OSSL_DISPATCH ossl_DH_der_to_dh_decoder_functions[];
487
6a2b8ff3 488extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_dhx_decoder_functions[];
2c090c1d
RL
489extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_dhx_decoder_functions[];
490extern const OSSL_DISPATCH ossl_type_specific_params_der_to_dhx_decoder_functions[];
491extern const OSSL_DISPATCH ossl_DHX_der_to_dhx_decoder_functions[];
492
6a2b8ff3 493extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_dsa_decoder_functions[];
2c090c1d
RL
494extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_dsa_decoder_functions[];
495extern const OSSL_DISPATCH ossl_type_specific_der_to_dsa_decoder_functions[];
496extern const OSSL_DISPATCH ossl_DSA_der_to_dsa_decoder_functions[];
1be63951
P
497extern const OSSL_DISPATCH ossl_msblob_to_dsa_decoder_functions[];
498extern const OSSL_DISPATCH ossl_pvk_to_dsa_decoder_functions[];
2c090c1d 499
6a2b8ff3 500extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_ec_decoder_functions[];
2c090c1d
RL
501extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ec_decoder_functions[];
502extern const OSSL_DISPATCH ossl_type_specific_no_pub_der_to_ec_decoder_functions[];
503extern const OSSL_DISPATCH ossl_EC_der_to_ec_decoder_functions[];
504
6a2b8ff3 505extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_x25519_decoder_functions[];
2c090c1d
RL
506extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_x25519_decoder_functions[];
507
6a2b8ff3 508extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_x448_decoder_functions[];
2c090c1d
RL
509extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_x448_decoder_functions[];
510
6a2b8ff3 511extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_ed25519_decoder_functions[];
2c090c1d
RL
512extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ed25519_decoder_functions[];
513
6a2b8ff3 514extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_ed448_decoder_functions[];
2c090c1d
RL
515extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ed448_decoder_functions[];
516
f2db0528 517#ifndef OPENSSL_NO_SM2
6a2b8ff3 518extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_sm2_decoder_functions[];
f2db0528 519extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_sm2_decoder_functions[];
08ae9fa6 520extern const OSSL_DISPATCH ossl_type_specific_no_pub_der_to_sm2_decoder_functions[];
f2db0528
RL
521#endif
522
6a2b8ff3 523extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_rsa_decoder_functions[];
2c090c1d
RL
524extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_rsa_decoder_functions[];
525extern const OSSL_DISPATCH ossl_type_specific_keypair_der_to_rsa_decoder_functions[];
526extern const OSSL_DISPATCH ossl_RSA_der_to_rsa_decoder_functions[];
1be63951
P
527extern const OSSL_DISPATCH ossl_msblob_to_rsa_decoder_functions[];
528extern const OSSL_DISPATCH ossl_pvk_to_rsa_decoder_functions[];
2c090c1d 529
6a2b8ff3 530extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_rsapss_decoder_functions[];
2c090c1d
RL
531extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_rsapss_decoder_functions[];
532
6a2b8ff3 533extern const OSSL_DISPATCH ossl_EncryptedPrivateKeyInfo_der_to_der_decoder_functions[];
8c7c1c84 534extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_der_decoder_functions[];
1be63951 535extern const OSSL_DISPATCH ossl_pem_to_der_decoder_functions[];
63f187cf 536
1be63951 537extern const OSSL_DISPATCH ossl_file_store_functions[];
606e0426 538extern const OSSL_DISPATCH ossl_winstore_store_functions[];