2019-04-03 16:39:34 +01:00
|
|
|
/*
|
2021-02-18 14:57:13 +00:00
|
|
|
* Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
|
2019-04-03 16:39:34 +01:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
|
|
|
*/
|
|
|
|
|
2020-05-08 10:22:45 +10:00
|
|
|
#include <openssl/core.h>
|
|
|
|
#include <openssl/types.h>
|
|
|
|
|
2019-04-03 16:39:34 +01:00
|
|
|
/* Digests */
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_sha1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sha224_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sha256_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sha384_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sha512_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sha512_224_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sha512_256_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sha3_224_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sha3_256_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sha3_384_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sha3_512_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_keccak_kmac_128_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_keccak_kmac_256_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_shake_128_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_shake_256_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_blake2s256_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_blake2b512_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_md5_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_md5_sha1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm3_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_md2_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_md4_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_mdc2_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_wp_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ripemd160_functions[];
|
2019-04-03 16:39:34 +01:00
|
|
|
|
|
|
|
/* Ciphers */
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_null_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256cbc_cts_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192cbc_cts_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128cbc_cts_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256ofb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192ofb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128ofb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256cfb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192cfb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128cfb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256cfb1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192cfb1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128cfb1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256cfb8_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192cfb8_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128cfb8_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256ctr_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192ctr_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128ctr_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256xts_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128xts_functions[];
|
2019-09-19 20:10:25 +10:00
|
|
|
#ifndef OPENSSL_NO_OCB
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_aes256ocb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192ocb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128ocb_functions[];
|
2019-09-19 20:10:25 +10:00
|
|
|
#endif /* OPENSSL_NO_OCB */
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_aes256gcm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192gcm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128gcm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256ccm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192ccm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128ccm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256wrap_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192wrap_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128wrap_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256wrappad_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192wrappad_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128wrappad_functions[];
|
2020-10-29 18:20:36 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_aes256wrapinv_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192wrapinv_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128wrapinv_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256wrappadinv_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192wrappadinv_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128wrappadinv_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_aes256cbc_hmac_sha1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128cbc_hmac_sha1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256cbc_hmac_sha256_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128cbc_hmac_sha256_functions[];
|
2019-07-10 11:42:03 +10:00
|
|
|
|
2019-07-31 21:55:16 +10:00
|
|
|
#ifndef OPENSSL_NO_ARIA
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_aria256gcm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria192gcm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria128gcm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria256ccm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria192ccm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria128ccm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria256ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria192ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria128ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria256cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria192cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria128cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria256ofb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria192ofb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria128ofb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria256cfb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria192cfb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria128cfb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria256cfb1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria192cfb1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria128cfb1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria256cfb8_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria192cfb8_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria128cfb8_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria256ctr_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria192ctr_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aria128ctr_functions[];
|
2019-07-31 21:55:16 +10:00
|
|
|
#endif /* OPENSSL_NO_ARIA */
|
2019-08-22 11:42:54 +10:00
|
|
|
#ifndef OPENSSL_NO_CAMELLIA
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_camellia256ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia192ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia128ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia256cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia192cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia128cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia256ofb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia192ofb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia128ofb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia256cfb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia192cfb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia128cfb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia256cfb1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia192cfb1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia128cfb1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia256cfb8_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia192cfb8_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia128cfb8_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia256ctr_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia192ctr_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia128ctr_functions[];
|
2019-08-22 11:42:54 +10:00
|
|
|
#endif /* OPENSSL_NO_CAMELLIA */
|
2019-09-15 20:06:28 +10:00
|
|
|
#ifndef OPENSSL_NO_BF
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_blowfish128ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_blowfish128cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_blowfish64ofb64_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_blowfish64cfb64_functions[];
|
2019-09-15 20:06:28 +10:00
|
|
|
#endif /* OPENSSL_NO_BF */
|
2019-09-18 15:57:08 +10:00
|
|
|
#ifndef OPENSSL_NO_IDEA
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_idea128ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_idea128cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_idea128ofb64_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_idea128cfb64_functions[];
|
2019-09-18 15:57:08 +10:00
|
|
|
#endif /* OPENSSL_NO_IDEA */
|
2019-09-18 18:55:11 +10:00
|
|
|
#ifndef OPENSSL_NO_CAST
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_cast5128ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_cast5128cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_cast5128ofb64_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_cast5128cfb64_functions[];
|
2019-09-18 18:55:11 +10:00
|
|
|
#endif /* OPENSSL_NO_CAST */
|
2019-09-18 22:13:59 +10:00
|
|
|
#ifndef OPENSSL_NO_SEED
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_seed128ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_seed128cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_seed128ofb128_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_seed128cfb128_functions[];
|
2019-09-18 22:13:59 +10:00
|
|
|
#endif /* OPENSSL_NO_SEED */
|
2019-09-19 15:38:51 +10:00
|
|
|
#ifndef OPENSSL_NO_SM4
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_sm4128ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm4128cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm4128ctr_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm4128ofb128_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm4128cfb128_functions[];
|
2019-09-19 15:38:51 +10:00
|
|
|
#endif /* OPENSSL_NO_SM4 */
|
2019-10-03 16:05:49 +10:00
|
|
|
#ifndef OPENSSL_NO_RC5
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_rc5128ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rc5128cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rc5128ofb64_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rc5128cfb64_functions[];
|
2019-10-03 16:05:49 +10:00
|
|
|
#endif /* OPENSSL_NO_RC5 */
|
2019-10-08 16:42:28 +10:00
|
|
|
#ifndef OPENSSL_NO_RC2
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_rc2128ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rc2128cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rc240cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rc264cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rc2128cfb128_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rc2128ofb128_functions[];
|
2019-10-08 16:42:28 +10:00
|
|
|
#endif /* OPENSSL_NO_RC2 */
|
2019-09-23 14:35:16 +10:00
|
|
|
#ifndef OPENSSL_NO_DES
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_tdes_ede3_ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_tdes_ede3_cbc_functions[];
|
2020-04-13 22:34:56 +02:00
|
|
|
# ifndef FIPS_MODULE
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_tdes_ede3_ofb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_tdes_ede3_cfb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_tdes_ede3_cfb8_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_tdes_ede3_cfb1_functions[];
|
2019-08-26 17:05:08 +10:00
|
|
|
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_tdes_ede2_ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_tdes_ede2_cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_tdes_ede2_ofb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_tdes_ede2_cfb_functions[];
|
2019-08-26 17:05:08 +10:00
|
|
|
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_tdes_desx_cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_tdes_wrap_cbc_functions[];
|
2019-09-23 14:35:16 +10:00
|
|
|
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_des_ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_des_cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_des_ofb64_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_des_cfb64_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_des_cfb1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_des_cfb8_functions[];
|
2020-04-13 22:34:56 +02:00
|
|
|
# endif /* FIPS_MODULE */
|
2019-09-23 14:35:16 +10:00
|
|
|
#endif /* OPENSSL_NO_DES */
|
2019-08-26 17:05:08 +10:00
|
|
|
|
2019-09-25 10:46:39 +10:00
|
|
|
#ifndef OPENSSL_NO_RC4
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_rc440_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rc4128_functions[];
|
2019-10-10 16:42:20 +10:00
|
|
|
# ifndef OPENSSL_NO_MD5
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_rc4_hmac_ossl_md5_functions[];
|
2019-10-10 16:42:20 +10:00
|
|
|
# endif /* OPENSSL_NO_MD5 */
|
2019-09-25 10:46:39 +10:00
|
|
|
#endif /* OPENSSL_NO_RC4 */
|
2019-10-16 16:18:42 +10:00
|
|
|
#ifndef OPENSSL_NO_CHACHA
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_chacha20_functions[];
|
2019-10-16 16:18:42 +10:00
|
|
|
# ifndef OPENSSL_NO_POLY1305
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_chacha20_ossl_poly1305_functions[];
|
2019-10-16 16:18:42 +10:00
|
|
|
# endif /* OPENSSL_NO_POLY1305 */
|
|
|
|
#endif /* OPENSSL_NO_CHACHA */
|
|
|
|
|
2019-09-25 10:46:39 +10:00
|
|
|
|
2019-11-08 12:14:44 +10:00
|
|
|
#ifndef OPENSSL_NO_SIV
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_aes128siv_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192siv_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256siv_functions[];
|
2019-11-08 12:14:44 +10:00
|
|
|
#endif /* OPENSSL_NO_SIV */
|
|
|
|
|
2019-08-21 13:09:10 +10:00
|
|
|
/* MACs */
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_blake2bmac_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_blake2smac_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_cmac_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_gmac_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_hmac_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kmac128_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kmac256_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_siphash_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_poly1305_functions[];
|
2019-08-21 13:09:10 +10:00
|
|
|
|
|
|
|
/* KDFs / PRFs */
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_pbkdf2_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_pkcs12_functions[];
|
2019-08-21 13:09:10 +10:00
|
|
|
#ifndef OPENSSL_NO_SCRYPT
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_scrypt_functions[];
|
2019-08-21 13:09:10 +10:00
|
|
|
#endif
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_tls1_prf_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_hkdf_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_sshkdf_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_sskdf_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_x963_kdf_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_kbkdf_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_x942_kdf_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_krb5kdf_functions[];
|
2019-08-21 13:09:10 +10:00
|
|
|
|
2020-05-08 10:22:45 +10:00
|
|
|
/* RNGs */
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_test_rng_functions[];
|
2020-11-20 08:45:34 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_seed_src_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_drbg_hash_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_drbg_ossl_hmac_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_drbg_ctr_functions[];
|
2020-05-08 10:22:45 +10:00
|
|
|
extern const OSSL_DISPATCH crngt_functions[];
|
2019-08-21 13:09:10 +10:00
|
|
|
|
2019-07-07 10:56:46 +02:00
|
|
|
/* Key management */
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_dh_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x25519_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x448_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed448_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_mac_legacy_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_cossl_mac_legacy_keymgmt_functions[];
|
2020-07-26 23:25:49 +08:00
|
|
|
#ifndef OPENSSL_NO_SM2
|
2021-01-28 08:01:52 +01:00
|
|
|
extern const OSSL_DISPATCH ossl_sm2_keymgmt_functions[];
|
2020-07-26 23:25:49 +08:00
|
|
|
#endif
|
2019-07-07 10:56:46 +02:00
|
|
|
|
2019-06-27 12:36:30 +01:00
|
|
|
/* Key Exchange */
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_dh_keyexch_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x25519_keyexch_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x448_keyexch_functions[];
|
2021-01-28 08:01:52 +01:00
|
|
|
extern const OSSL_DISPATCH ossl_ecdh_keyexch_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_tls1_prf_keyexch_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_hkdf_keyexch_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_scrypt_keyexch_functions[];
|
2019-08-30 13:33:37 +01:00
|
|
|
|
|
|
|
/* Signature */
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_dsa_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed448_signature_functions[];
|
2021-01-28 08:01:52 +01:00
|
|
|
extern const OSSL_DISPATCH ossl_ecdsa_signature_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_mac_legacy_hmac_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_mac_legacy_siphash_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_mac_legacy_poly1305_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_mac_legacy_cmac_signature_functions[];
|
2021-01-28 08:01:52 +01:00
|
|
|
extern const OSSL_DISPATCH ossl_sm2_signature_functions[];
|
2019-10-28 13:40:39 +00:00
|
|
|
|
|
|
|
/* Asym Cipher */
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_asym_cipher_functions[];
|
2020-09-18 09:55:16 +01:00
|
|
|
#ifndef OPENSSL_NO_SM2
|
2021-01-28 08:01:52 +01:00
|
|
|
extern const OSSL_DISPATCH ossl_sm2_asym_cipher_functions[];
|
2020-09-18 09:55:16 +01:00
|
|
|
#endif
|
2019-11-18 01:56:22 +01:00
|
|
|
|
2020-09-19 18:08:46 +10:00
|
|
|
/* Asym Key encapsulation */
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_asym_kem_functions[];
|
2020-09-19 18:08:46 +10:00
|
|
|
|
2020-08-16 21:25:08 +02:00
|
|
|
/* Encoders */
|
2020-10-17 08:34:47 +02:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_PKCS1_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_PKCS1_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_PKCS8_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_PKCS8_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_RSA_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_RSA_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
2020-12-09 11:54:56 +01:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_msblob_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_pvk_encoder_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_text_encoder_functions[];
|
2020-10-17 08:34:47 +02:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_type_specific_keypair_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_type_specific_keypair_pem_encoder_functions[];
|
2020-02-28 08:08:59 +10:00
|
|
|
|
2020-10-17 08:34:47 +02:00
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_PKCS1_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_PKCS1_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_PKCS8_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_PKCS8_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_text_encoder_functions[];
|
2020-02-28 08:08:59 +10:00
|
|
|
|
2020-10-17 08:34:47 +02:00
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_DH_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_DH_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_PKCS3_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_PKCS3_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_PKCS8_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_PKCS8_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_type_specific_params_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_type_specific_params_pem_encoder_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_text_encoder_functions[];
|
2020-02-28 08:08:59 +10:00
|
|
|
|
2020-10-17 08:34:47 +02:00
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_DHX_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_DHX_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_PKCS8_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_PKCS8_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_X9_42_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_X9_42_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_type_specific_params_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_type_specific_params_pem_encoder_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_text_encoder_functions[];
|
2020-02-28 08:08:59 +10:00
|
|
|
|
2020-10-17 08:34:47 +02:00
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_DSA_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_DSA_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_PKCS8_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_PKCS8_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_type_specific_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_type_specific_der_encoder_functions[];
|
2020-12-09 11:54:56 +01:00
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_msblob_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_pvk_encoder_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_text_encoder_functions[];
|
2020-02-16 19:54:08 +10:00
|
|
|
|
2020-10-17 08:34:47 +02:00
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_EC_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_EC_pem_encoder_functions[];
|
2021-02-23 22:41:04 +01:00
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_blob_encoder_functions[];
|
2020-10-17 08:34:47 +02:00
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_PKCS8_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_PKCS8_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_X9_62_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_X9_62_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_type_specific_no_pub_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_type_specific_no_pub_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_text_encoder_functions[];
|
2020-03-18 08:40:33 +10:00
|
|
|
|
2021-01-28 08:22:09 +01:00
|
|
|
#ifndef OPENSSL_NO_SM2
|
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_SM2_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_SM2_pem_encoder_functions[];
|
2021-02-23 22:41:04 +01:00
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_blob_encoder_functions[];
|
2021-01-28 08:22:09 +01:00
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_PKCS8_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_PKCS8_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_type_specific_no_pub_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_type_specific_no_pub_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_text_encoder_functions[];
|
|
|
|
#endif
|
|
|
|
|
2020-10-17 08:34:47 +02:00
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_to_PKCS8_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_to_PKCS8_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_to_OSSL_current_der_encoder_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_to_text_encoder_functions[];
|
2020-09-14 09:31:36 +02:00
|
|
|
|
2020-10-17 08:34:47 +02:00
|
|
|
extern const OSSL_DISPATCH ossl_ed448_to_PKCS8_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed448_to_PKCS8_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed448_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed448_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed448_to_OSSL_current_der_encoder_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_ed448_to_text_encoder_functions[];
|
2020-09-14 09:31:36 +02:00
|
|
|
|
2020-10-17 08:34:47 +02:00
|
|
|
extern const OSSL_DISPATCH ossl_x25519_to_PKCS8_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x25519_to_PKCS8_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x25519_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x25519_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x25519_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x25519_to_text_encoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_x448_to_PKCS8_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x448_to_PKCS8_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x448_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x448_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x448_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x448_to_text_encoder_functions[];
|
2020-07-09 19:07:12 +02:00
|
|
|
|
2020-09-07 12:25:17 +02:00
|
|
|
/* Decoders */
|
PROV: Re-implement all the keypair decoders
The base functionality to implement the keypair decoders doesn't
change much, but this results in a more massive amount of
OSSL_DISPATCH and OSSL_ALGORITHM arrays, to support a fine grained
selection of implementation based on what parts of the keypair
structure (combinations of key parameters, public key and private key)
should be expected as input, the input type ("DER", "PEM", ...) and the
outermost input structure ("pkcs8", "SubjectPublicKeyInfo", key
type specific structures, ...).
We add support for the generic structure name "type-specific", to
allow selecting that without knowing the exact name of that structure.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13248)
2020-10-26 13:22:54 +01:00
|
|
|
extern const OSSL_DISPATCH ossl_PKCS8_der_to_dh_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_dh_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_type_specific_params_der_to_dh_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_DH_der_to_dh_decoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_PKCS8_der_to_dhx_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_dhx_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_type_specific_params_der_to_dhx_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_DHX_der_to_dhx_decoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_PKCS8_der_to_dsa_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_dsa_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_type_specific_der_to_dsa_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_DSA_der_to_dsa_decoder_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_msblob_to_dsa_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_pvk_to_dsa_decoder_functions[];
|
PROV: Re-implement all the keypair decoders
The base functionality to implement the keypair decoders doesn't
change much, but this results in a more massive amount of
OSSL_DISPATCH and OSSL_ALGORITHM arrays, to support a fine grained
selection of implementation based on what parts of the keypair
structure (combinations of key parameters, public key and private key)
should be expected as input, the input type ("DER", "PEM", ...) and the
outermost input structure ("pkcs8", "SubjectPublicKeyInfo", key
type specific structures, ...).
We add support for the generic structure name "type-specific", to
allow selecting that without knowing the exact name of that structure.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13248)
2020-10-26 13:22:54 +01:00
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_PKCS8_der_to_ec_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ec_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_type_specific_no_pub_der_to_ec_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_EC_der_to_ec_decoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_PKCS8_der_to_x25519_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_x25519_decoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_PKCS8_der_to_x448_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_x448_decoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_PKCS8_der_to_ed25519_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ed25519_decoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_PKCS8_der_to_ed448_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ed448_decoder_functions[];
|
|
|
|
|
2021-01-28 08:22:09 +01:00
|
|
|
#ifndef OPENSSL_NO_SM2
|
|
|
|
extern const OSSL_DISPATCH ossl_PKCS8_der_to_sm2_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_sm2_decoder_functions[];
|
|
|
|
#endif
|
|
|
|
|
PROV: Re-implement all the keypair decoders
The base functionality to implement the keypair decoders doesn't
change much, but this results in a more massive amount of
OSSL_DISPATCH and OSSL_ALGORITHM arrays, to support a fine grained
selection of implementation based on what parts of the keypair
structure (combinations of key parameters, public key and private key)
should be expected as input, the input type ("DER", "PEM", ...) and the
outermost input structure ("pkcs8", "SubjectPublicKeyInfo", key
type specific structures, ...).
We add support for the generic structure name "type-specific", to
allow selecting that without knowing the exact name of that structure.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13248)
2020-10-26 13:22:54 +01:00
|
|
|
extern const OSSL_DISPATCH ossl_PKCS8_der_to_rsa_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_rsa_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_type_specific_keypair_der_to_rsa_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_RSA_der_to_rsa_decoder_functions[];
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_msblob_to_rsa_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_pvk_to_rsa_decoder_functions[];
|
PROV: Re-implement all the keypair decoders
The base functionality to implement the keypair decoders doesn't
change much, but this results in a more massive amount of
OSSL_DISPATCH and OSSL_ALGORITHM arrays, to support a fine grained
selection of implementation based on what parts of the keypair
structure (combinations of key parameters, public key and private key)
should be expected as input, the input type ("DER", "PEM", ...) and the
outermost input structure ("pkcs8", "SubjectPublicKeyInfo", key
type specific structures, ...).
We add support for the generic structure name "type-specific", to
allow selecting that without knowing the exact name of that structure.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13248)
2020-10-26 13:22:54 +01:00
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_PKCS8_der_to_rsapss_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_rsapss_decoder_functions[];
|
|
|
|
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_pem_to_der_decoder_functions[];
|
2020-08-02 12:46:00 +02:00
|
|
|
|
2020-09-28 12:28:29 +10:00
|
|
|
extern const OSSL_DISPATCH ossl_file_store_functions[];
|