2019-04-03 23:39:34 +08:00
|
|
|
/*
|
2025-03-12 21:35:59 +08:00
|
|
|
* Copyright 2019-2025 The OpenSSL Project Authors. All Rights Reserved.
|
2019-04-03 23:39:34 +08: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 08:22:45 +08:00
|
|
|
#include <openssl/core.h>
|
|
|
|
#include <openssl/types.h>
|
|
|
|
|
2019-04-03 23:39:34 +08:00
|
|
|
/* Digests */
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_sha1_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sha224_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sha256_functions[];
|
2023-06-12 18:02:14 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_sha256_192_functions[];
|
2020-09-28 10:28:29 +08:00
|
|
|
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[];
|
2021-09-13 18:59:42 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_keccak_224_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_keccak_256_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_keccak_384_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_keccak_512_functions[];
|
2020-09-28 10:28:29 +08:00
|
|
|
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[];
|
2021-11-12 23:31:35 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_nullmd_functions[];
|
2019-04-03 23:39:34 +08:00
|
|
|
|
|
|
|
/* Ciphers */
|
2020-09-28 10:28:29 +08: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 18:10:25 +08:00
|
|
|
#ifndef OPENSSL_NO_OCB
|
2020-09-28 10:28:29 +08: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 18:10:25 +08:00
|
|
|
#endif /* OPENSSL_NO_OCB */
|
2020-09-28 10:28:29 +08: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 16:20:36 +08: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 10:28:29 +08: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[];
|
2024-01-17 18:48:55 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_aes128cbc_hmac_sha1_etm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192cbc_hmac_sha1_etm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256cbc_hmac_sha1_etm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes128cbc_hmac_sha256_etm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192cbc_hmac_sha256_etm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256cbc_hmac_sha256_etm_functions[];
|
2024-01-26 18:48:17 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_aes128cbc_hmac_sha512_etm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192cbc_hmac_sha512_etm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256cbc_hmac_sha512_etm_functions[];
|
2019-07-10 09:42:03 +08:00
|
|
|
|
2019-07-31 19:55:16 +08:00
|
|
|
#ifndef OPENSSL_NO_ARIA
|
2020-09-28 10:28:29 +08: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 19:55:16 +08:00
|
|
|
#endif /* OPENSSL_NO_ARIA */
|
2019-08-22 09:42:54 +08:00
|
|
|
#ifndef OPENSSL_NO_CAMELLIA
|
2020-09-28 10:28:29 +08: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[];
|
2021-08-12 16:22:50 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_camellia256cbc_cts_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia192cbc_cts_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_camellia128cbc_cts_functions[];
|
2020-09-28 10:28:29 +08:00
|
|
|
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 09:42:54 +08:00
|
|
|
#endif /* OPENSSL_NO_CAMELLIA */
|
2019-09-15 18:06:28 +08:00
|
|
|
#ifndef OPENSSL_NO_BF
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_blowfish128ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_blowfish128cbc_functions[];
|
2022-05-20 22:27:51 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_blowfish128ofb64_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_blowfish128cfb64_functions[];
|
2019-09-15 18:06:28 +08:00
|
|
|
#endif /* OPENSSL_NO_BF */
|
2019-09-18 13:57:08 +08:00
|
|
|
#ifndef OPENSSL_NO_IDEA
|
2020-09-28 10:28:29 +08: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 13:57:08 +08:00
|
|
|
#endif /* OPENSSL_NO_IDEA */
|
2019-09-18 16:55:11 +08:00
|
|
|
#ifndef OPENSSL_NO_CAST
|
2020-09-28 10:28:29 +08: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 16:55:11 +08:00
|
|
|
#endif /* OPENSSL_NO_CAST */
|
2019-09-18 20:13:59 +08:00
|
|
|
#ifndef OPENSSL_NO_SEED
|
2020-09-28 10:28:29 +08: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 20:13:59 +08:00
|
|
|
#endif /* OPENSSL_NO_SEED */
|
2019-09-19 13:38:51 +08:00
|
|
|
#ifndef OPENSSL_NO_SM4
|
2021-09-01 16:54:15 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_sm4128gcm_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm4128ccm_functions[];
|
2020-09-28 10:28:29 +08: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[];
|
2022-11-25 13:52:49 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_sm4128xts_functions[];
|
2019-09-19 13:38:51 +08:00
|
|
|
#endif /* OPENSSL_NO_SM4 */
|
2019-10-03 14:05:49 +08:00
|
|
|
#ifndef OPENSSL_NO_RC5
|
2020-09-28 10:28:29 +08: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 14:05:49 +08:00
|
|
|
#endif /* OPENSSL_NO_RC5 */
|
2019-10-08 14:42:28 +08:00
|
|
|
#ifndef OPENSSL_NO_RC2
|
2020-09-28 10:28:29 +08: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 14:42:28 +08:00
|
|
|
#endif /* OPENSSL_NO_RC2 */
|
2019-09-23 12:35:16 +08:00
|
|
|
#ifndef OPENSSL_NO_DES
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_tdes_ede3_ecb_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_tdes_ede3_cbc_functions[];
|
2020-04-14 04:34:56 +08:00
|
|
|
# ifndef FIPS_MODULE
|
2020-09-28 10:28:29 +08: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 15:05:08 +08:00
|
|
|
|
2020-09-28 10:28:29 +08: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 15:05:08 +08:00
|
|
|
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_tdes_desx_cbc_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_tdes_wrap_cbc_functions[];
|
2019-09-23 12:35:16 +08:00
|
|
|
|
2020-09-28 10:28:29 +08: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-14 04:34:56 +08:00
|
|
|
# endif /* FIPS_MODULE */
|
2019-09-23 12:35:16 +08:00
|
|
|
#endif /* OPENSSL_NO_DES */
|
2019-08-26 15:05:08 +08:00
|
|
|
|
2019-09-25 08:46:39 +08:00
|
|
|
#ifndef OPENSSL_NO_RC4
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rc440_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rc4128_functions[];
|
2019-10-10 14:42:20 +08:00
|
|
|
# ifndef OPENSSL_NO_MD5
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rc4_hmac_ossl_md5_functions[];
|
2019-10-10 14:42:20 +08:00
|
|
|
# endif /* OPENSSL_NO_MD5 */
|
2019-09-25 08:46:39 +08:00
|
|
|
#endif /* OPENSSL_NO_RC4 */
|
2019-10-16 14:18:42 +08:00
|
|
|
#ifndef OPENSSL_NO_CHACHA
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_chacha20_functions[];
|
2019-10-16 14:18:42 +08:00
|
|
|
# ifndef OPENSSL_NO_POLY1305
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_chacha20_ossl_poly1305_functions[];
|
2019-10-16 14:18:42 +08:00
|
|
|
# endif /* OPENSSL_NO_POLY1305 */
|
|
|
|
#endif /* OPENSSL_NO_CHACHA */
|
|
|
|
|
2019-09-25 08:46:39 +08:00
|
|
|
|
2019-11-08 10:14:44 +08:00
|
|
|
#ifndef OPENSSL_NO_SIV
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_aes128siv_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192siv_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256siv_functions[];
|
2022-04-29 02:56:11 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_aes128gcm_siv_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes192gcm_siv_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes256gcm_siv_functions[];
|
2019-11-08 10:14:44 +08:00
|
|
|
#endif /* OPENSSL_NO_SIV */
|
|
|
|
|
2019-08-21 11:09:10 +08:00
|
|
|
/* MACs */
|
2020-09-28 10:28:29 +08: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[];
|
2024-07-31 12:56:44 +08:00
|
|
|
#ifdef FIPS_MODULE
|
|
|
|
extern const OSSL_DISPATCH ossl_hmac_internal_functions[];
|
2024-08-05 13:25:35 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kmac128_internal_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kmac256_internal_functions[];
|
2024-07-31 12:56:44 +08:00
|
|
|
#endif
|
2020-09-28 10:28:29 +08:00
|
|
|
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 11:09:10 +08:00
|
|
|
|
|
|
|
/* KDFs / PRFs */
|
2021-02-26 13:21:47 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_pbkdf1_functions[];
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_pbkdf2_functions[];
|
2021-07-01 12:10:04 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_pvk_functions[];
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_pkcs12_functions[];
|
2019-08-21 11:09:10 +08:00
|
|
|
#ifndef OPENSSL_NO_SCRYPT
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_scrypt_functions[];
|
2019-08-21 11:09:10 +08:00
|
|
|
#endif
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_tls1_prf_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_hkdf_functions[];
|
2025-04-03 17:45:20 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_hkdf_sha256_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_hkdf_sha384_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_hkdf_sha512_functions[];
|
2021-08-02 14:16:35 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_tls1_3_kdf_functions[];
|
2020-09-28 10:28:29 +08:00
|
|
|
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[];
|
2022-07-15 19:22:01 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_hmac_drbg_functions[];
|
2021-09-28 04:45:38 +08:00
|
|
|
#ifndef OPENSSL_NO_ARGON2
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_argon2i_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_argon2d_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_argon2id_functions[];
|
|
|
|
#endif
|
2019-08-21 11:09:10 +08:00
|
|
|
|
2020-05-08 08:22:45 +08:00
|
|
|
/* RNGs */
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_test_rng_functions[];
|
2020-11-20 06:45:34 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_seed_src_functions[];
|
2024-07-10 22:39:01 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_jitter_functions[];
|
2024-09-05 08:24:07 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_crng_test_functions[];
|
2020-09-28 10:28:29 +08: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 08:22:45 +08:00
|
|
|
extern const OSSL_DISPATCH crngt_functions[];
|
2019-08-21 11:09:10 +08:00
|
|
|
|
2019-07-07 16:56:46 +08:00
|
|
|
/* Key management */
|
2020-09-28 10:28:29 +08: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[];
|
2024-12-20 17:26:50 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_mac_legacy_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_cmac_legacy_keymgmt_functions[];
|
|
|
|
#ifndef OPENSSL_NO_EC
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_keymgmt_functions[];
|
|
|
|
# ifndef OPENSSL_NO_ECX
|
2020-09-28 10:28:29 +08:00
|
|
|
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[];
|
2024-12-20 17:26:50 +08:00
|
|
|
# endif
|
|
|
|
# ifndef OPENSSL_NO_SM2
|
2021-01-28 15:01:52 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_sm2_keymgmt_functions[];
|
2024-12-20 17:26:50 +08:00
|
|
|
# endif
|
2020-07-26 23:25:49 +08:00
|
|
|
#endif
|
2024-10-03 09:16:15 +08:00
|
|
|
#ifndef OPENSSL_NO_LMS
|
|
|
|
extern const OSSL_DISPATCH ossl_lms_keymgmt_functions[];
|
|
|
|
#endif
|
2025-01-05 20:32:23 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_44_keymgmt_functions[];
|
2024-12-03 12:03:09 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_65_keymgmt_functions[];
|
2025-01-05 20:32:23 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_87_keymgmt_functions[];
|
Multi-variant ML-KEM
This introduces support for ML-KEM-512 and ML-KEM-1024 using the same
underlying implementation parameterised by a few macros for the
associated types and constants.
KAT tests are added for ML-KEM 512 and 1024, to complement the previous
tests for ML-KEM-768.
MLKEM{512,768,1024} TLS "group" codepoints are updated to match the
final IANA assigments and to make the additional KEMs known to the TLS
layer.
The pure-QC MLKEMs are not in the default list of supported groups, and
need to be explicitly enabled by the application. Future work will
introduce support for hybrids, and for more fine-grained policy of
which keyshares a client should send by default, and when a server
should request (HRR) a new mutually-supported group that was not
sent.
Tests for ML-KEM key exchange added to sslapitest to make sure that our
TLS client MLKEM{512,768,1024} implementations interoperate with our TLS
server, and that MLKEM* are not negotiated in TLS 1.2.
Tests also added to excercise non-derandomised ML-KEM APIs, both
directly (bypassing the provider layer), and through the generic EVP KEM
API (exercising the provider). These make sure that RNG input is used
correctly (KAT tests bypass the RNG by specifying seeds).
The API interface to the provider takes an "const ML_KEM_VINFO" pointer,
(obtained from ossl_ml_kem_get_vinfo()). This checks input and output
buffer sizes before passing control to internal code that assumes
correctly sized (for each variant) buffers.
The original BoringSSL API was refactored to eliminate the opaque
public/private key structure wrappers, since these structures are an
internal detail between libcrypto and the provider, they are not part of
the public (EVP) API.
New "clangover" counter-measures added, refined with much appreciated
input from David Benjamin (Chromium).
The internal steps of "encrypt_cpa" were reordered to reduce the
working-set size of the algorithm, now needs space for just two
temporary "vectors" rather than three. The "decap" function now process
the decrypted message in one call, rather than three separate calls to
scalar_decode_1, scalar_decompress and scalar_add.
Some loops were unrolled, improving performance of en/decapsulate
(pre-expanded vectors and matrix) by around 5%.
To handle, however unlikely, the SHA3 primitives not behaving like
"pure" functions and failing, the implementation of `decap` was modifed:
- To use the KDF to compute the Fujisaki-Okamoto (FO) failure secret
first thing, and if that fails, bail out returning an error, a shared
secret is still returned at random from the RNG, but it is OK for the
caller to not use it.
- If any of the subsequently used hash primitives fail, use the computed
FO failure secret (OK, despite no longer constant-time) and return
success (otherwise the RNG would replace the result).
- We quite reasonably assume that chosen-ciphertext attacks (of the
correct length) cannot cause hash functions to fail in a manner the
depends on the private key content.
Support for ML-KEM-512 required adding a centered binomial distribution
helper function to deal with η_1 == 3 in just that variant.
Some additional comments were added to highlight how the code relates to
the ML-KEM specification in FIPS 203.
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26172)
2024-11-30 22:20:58 +08:00
|
|
|
#ifndef OPENSSL_NO_ML_KEM
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_512_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_768_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_1024_keymgmt_functions[];
|
2024-12-20 17:26:50 +08:00
|
|
|
# ifndef OPENSSL_NO_EC
|
|
|
|
# ifndef OPENSSL_NO_ECX
|
|
|
|
extern const OSSL_DISPATCH ossl_mlx_x25519_kem_kmgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_mlx_x448_kem_kmgmt_functions[];
|
|
|
|
# endif
|
|
|
|
extern const OSSL_DISPATCH ossl_mlx_p256_kem_kmgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_mlx_p384_kem_kmgmt_functions[];
|
|
|
|
# endif
|
Multi-variant ML-KEM
This introduces support for ML-KEM-512 and ML-KEM-1024 using the same
underlying implementation parameterised by a few macros for the
associated types and constants.
KAT tests are added for ML-KEM 512 and 1024, to complement the previous
tests for ML-KEM-768.
MLKEM{512,768,1024} TLS "group" codepoints are updated to match the
final IANA assigments and to make the additional KEMs known to the TLS
layer.
The pure-QC MLKEMs are not in the default list of supported groups, and
need to be explicitly enabled by the application. Future work will
introduce support for hybrids, and for more fine-grained policy of
which keyshares a client should send by default, and when a server
should request (HRR) a new mutually-supported group that was not
sent.
Tests for ML-KEM key exchange added to sslapitest to make sure that our
TLS client MLKEM{512,768,1024} implementations interoperate with our TLS
server, and that MLKEM* are not negotiated in TLS 1.2.
Tests also added to excercise non-derandomised ML-KEM APIs, both
directly (bypassing the provider layer), and through the generic EVP KEM
API (exercising the provider). These make sure that RNG input is used
correctly (KAT tests bypass the RNG by specifying seeds).
The API interface to the provider takes an "const ML_KEM_VINFO" pointer,
(obtained from ossl_ml_kem_get_vinfo()). This checks input and output
buffer sizes before passing control to internal code that assumes
correctly sized (for each variant) buffers.
The original BoringSSL API was refactored to eliminate the opaque
public/private key structure wrappers, since these structures are an
internal detail between libcrypto and the provider, they are not part of
the public (EVP) API.
New "clangover" counter-measures added, refined with much appreciated
input from David Benjamin (Chromium).
The internal steps of "encrypt_cpa" were reordered to reduce the
working-set size of the algorithm, now needs space for just two
temporary "vectors" rather than three. The "decap" function now process
the decrypted message in one call, rather than three separate calls to
scalar_decode_1, scalar_decompress and scalar_add.
Some loops were unrolled, improving performance of en/decapsulate
(pre-expanded vectors and matrix) by around 5%.
To handle, however unlikely, the SHA3 primitives not behaving like
"pure" functions and failing, the implementation of `decap` was modifed:
- To use the KDF to compute the Fujisaki-Okamoto (FO) failure secret
first thing, and if that fails, bail out returning an error, a shared
secret is still returned at random from the RNG, but it is OK for the
caller to not use it.
- If any of the subsequently used hash primitives fail, use the computed
FO failure secret (OK, despite no longer constant-time) and return
success (otherwise the RNG would replace the result).
- We quite reasonably assume that chosen-ciphertext attacks (of the
correct length) cannot cause hash functions to fail in a manner the
depends on the private key content.
Support for ML-KEM-512 required adding a centered binomial distribution
helper function to deal with η_1 == 3 in just that variant.
Some additional comments were added to highlight how the code relates to
the ML-KEM specification in FIPS 203.
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26172)
2024-11-30 22:20:58 +08:00
|
|
|
#endif
|
2024-11-06 11:22:45 +08:00
|
|
|
#ifndef OPENSSL_NO_SLH_DSA
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128s_keymgmt_functions[];
|
2024-11-07 11:59:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128f_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192s_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192f_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256s_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256f_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128s_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128f_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192s_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192f_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256s_keymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256f_keymgmt_functions[];
|
2024-11-06 11:22:45 +08:00
|
|
|
#endif /* OPENSSL_NO_SLH_DSA */
|
2019-07-07 16:56:46 +08:00
|
|
|
|
2019-06-27 19:36:30 +08:00
|
|
|
/* Key Exchange */
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dh_keyexch_functions[];
|
2024-12-20 17:26:50 +08:00
|
|
|
#ifndef OPENSSL_NO_EC
|
|
|
|
extern const OSSL_DISPATCH ossl_ecdh_keyexch_functions[];
|
|
|
|
# ifndef OPENSSL_NO_ECX
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_x25519_keyexch_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x448_keyexch_functions[];
|
2024-12-20 17:26:50 +08:00
|
|
|
# endif
|
|
|
|
#endif
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_tls1_prf_keyexch_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_hkdf_keyexch_functions[];
|
2025-04-03 17:45:20 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_hkdf_sha256_keyexch_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_hkdf_sha384_keyexch_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_kdf_hkdf_sha512_keyexch_functions[];
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_kdf_scrypt_keyexch_functions[];
|
2019-08-30 20:33:37 +08:00
|
|
|
|
|
|
|
/* Signature */
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dsa_signature_functions[];
|
2024-07-24 21:37:08 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dsa_sha1_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_sha224_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_sha256_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_sha384_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_sha512_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_sha3_224_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_sha3_256_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_sha3_384_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_sha3_512_signature_functions[];
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_signature_functions[];
|
2024-07-06 22:26:39 +08:00
|
|
|
#ifndef OPENSSL_NO_MD5
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_md5_signature_functions[];
|
|
|
|
#endif
|
|
|
|
#ifndef OPENSSL_NO_RMD160
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_ripemd160_signature_functions[];
|
|
|
|
#endif
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_sha1_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_sha224_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_sha256_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_sha384_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_sha512_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_sha512_224_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_sha512_256_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_sha3_224_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_sha3_256_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_sha3_384_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_sha3_512_signature_functions[];
|
|
|
|
#ifndef OPENSSL_NO_SM3
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_sm3_signature_functions[];
|
|
|
|
#endif
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_signature_functions[];
|
2024-02-02 15:20:06 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ed25519ph_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed25519ctx_signature_functions[];
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ed448_signature_functions[];
|
2024-02-02 15:20:06 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ed448ph_signature_functions[];
|
2021-01-28 15:01:52 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ecdsa_signature_functions[];
|
2024-07-25 04:07:32 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ecdsa_sha1_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ecdsa_sha224_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ecdsa_sha256_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ecdsa_sha384_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ecdsa_sha512_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ecdsa_sha3_224_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ecdsa_sha3_256_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ecdsa_sha3_384_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ecdsa_sha3_512_signature_functions[];
|
2020-09-28 10:28:29 +08: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 15:01:52 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_sm2_signature_functions[];
|
2025-01-05 20:32:23 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_44_signature_functions[];
|
2024-12-20 11:18:27 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_65_signature_functions[];
|
2025-01-05 20:32:23 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_87_signature_functions[];
|
2024-11-06 14:37:08 +08:00
|
|
|
#ifndef OPENSSL_NO_SLH_DSA
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128s_signature_functions[];
|
2024-11-07 11:59:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128f_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192s_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192f_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256s_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256f_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128s_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128f_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192s_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192f_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256s_signature_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256f_signature_functions[];
|
2024-11-06 14:37:08 +08:00
|
|
|
#endif /* OPENSSL_NO_SLH_DSA */
|
2019-10-28 21:40:39 +08:00
|
|
|
|
|
|
|
/* Asym Cipher */
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_asym_cipher_functions[];
|
2020-09-18 16:55:16 +08:00
|
|
|
#ifndef OPENSSL_NO_SM2
|
2021-01-28 15:01:52 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_sm2_asym_cipher_functions[];
|
2020-09-18 16:55:16 +08:00
|
|
|
#endif
|
2019-11-18 08:56:22 +08:00
|
|
|
|
2020-09-19 16:08:46 +08:00
|
|
|
/* Asym Key encapsulation */
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_asym_kem_functions[];
|
2024-12-20 17:26:50 +08:00
|
|
|
#ifndef OPENSSL_NO_EC
|
2022-08-26 09:54:35 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ec_asym_kem_functions[];
|
2024-12-20 17:26:50 +08:00
|
|
|
# ifndef OPENSSL_NO_ECX
|
|
|
|
extern const OSSL_DISPATCH ossl_ecx_asym_kem_functions[];
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
#ifndef OPENSSL_NO_ML_KEM
|
Multi-variant ML-KEM
This introduces support for ML-KEM-512 and ML-KEM-1024 using the same
underlying implementation parameterised by a few macros for the
associated types and constants.
KAT tests are added for ML-KEM 512 and 1024, to complement the previous
tests for ML-KEM-768.
MLKEM{512,768,1024} TLS "group" codepoints are updated to match the
final IANA assigments and to make the additional KEMs known to the TLS
layer.
The pure-QC MLKEMs are not in the default list of supported groups, and
need to be explicitly enabled by the application. Future work will
introduce support for hybrids, and for more fine-grained policy of
which keyshares a client should send by default, and when a server
should request (HRR) a new mutually-supported group that was not
sent.
Tests for ML-KEM key exchange added to sslapitest to make sure that our
TLS client MLKEM{512,768,1024} implementations interoperate with our TLS
server, and that MLKEM* are not negotiated in TLS 1.2.
Tests also added to excercise non-derandomised ML-KEM APIs, both
directly (bypassing the provider layer), and through the generic EVP KEM
API (exercising the provider). These make sure that RNG input is used
correctly (KAT tests bypass the RNG by specifying seeds).
The API interface to the provider takes an "const ML_KEM_VINFO" pointer,
(obtained from ossl_ml_kem_get_vinfo()). This checks input and output
buffer sizes before passing control to internal code that assumes
correctly sized (for each variant) buffers.
The original BoringSSL API was refactored to eliminate the opaque
public/private key structure wrappers, since these structures are an
internal detail between libcrypto and the provider, they are not part of
the public (EVP) API.
New "clangover" counter-measures added, refined with much appreciated
input from David Benjamin (Chromium).
The internal steps of "encrypt_cpa" were reordered to reduce the
working-set size of the algorithm, now needs space for just two
temporary "vectors" rather than three. The "decap" function now process
the decrypted message in one call, rather than three separate calls to
scalar_decode_1, scalar_decompress and scalar_add.
Some loops were unrolled, improving performance of en/decapsulate
(pre-expanded vectors and matrix) by around 5%.
To handle, however unlikely, the SHA3 primitives not behaving like
"pure" functions and failing, the implementation of `decap` was modifed:
- To use the KDF to compute the Fujisaki-Okamoto (FO) failure secret
first thing, and if that fails, bail out returning an error, a shared
secret is still returned at random from the RNG, but it is OK for the
caller to not use it.
- If any of the subsequently used hash primitives fail, use the computed
FO failure secret (OK, despite no longer constant-time) and return
success (otherwise the RNG would replace the result).
- We quite reasonably assume that chosen-ciphertext attacks (of the
correct length) cannot cause hash functions to fail in a manner the
depends on the private key content.
Support for ML-KEM-512 required adding a centered binomial distribution
helper function to deal with η_1 == 3 in just that variant.
Some additional comments were added to highlight how the code relates to
the ML-KEM specification in FIPS 203.
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26172)
2024-11-30 22:20:58 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_asym_kem_functions[];
|
2024-12-20 17:26:50 +08:00
|
|
|
# ifndef OPENSSL_NO_EC
|
|
|
|
extern const OSSL_DISPATCH ossl_mlx_kem_asym_kem_functions[];
|
|
|
|
# endif
|
|
|
|
#endif
|
2020-09-19 16:08:46 +08:00
|
|
|
|
2020-08-17 03:25:08 +08:00
|
|
|
/* Encoders */
|
2020-10-17 14:34:47 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_PKCS1_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_PKCS1_pem_encoder_functions[];
|
2021-09-02 04:18:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_PrivateKeyInfo_pem_encoder_functions[];
|
2020-10-17 14:34:47 +08:00
|
|
|
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 18:54:56 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_msblob_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_pvk_encoder_functions[];
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rsa_to_text_encoder_functions[];
|
2020-10-17 14:34:47 +08: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 06:08:59 +08:00
|
|
|
|
2020-10-17 14:34:47 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_PKCS1_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_PKCS1_pem_encoder_functions[];
|
2021-09-02 04:18:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_PrivateKeyInfo_pem_encoder_functions[];
|
2020-10-17 14:34:47 +08:00
|
|
|
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 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_rsapss_to_text_encoder_functions[];
|
2020-02-28 06:08:59 +08:00
|
|
|
|
2020-10-17 14:34:47 +08: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[];
|
2021-09-02 04:18:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_PrivateKeyInfo_pem_encoder_functions[];
|
2020-10-17 14:34:47 +08:00
|
|
|
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 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dh_to_text_encoder_functions[];
|
2020-02-28 06:08:59 +08:00
|
|
|
|
2020-10-17 14:34:47 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_DHX_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_DHX_pem_encoder_functions[];
|
2021-09-02 04:18:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_PrivateKeyInfo_pem_encoder_functions[];
|
2020-10-17 14:34:47 +08:00
|
|
|
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 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dhx_to_text_encoder_functions[];
|
2020-02-28 06:08:59 +08:00
|
|
|
|
2020-10-17 14:34:47 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_DSA_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_DSA_pem_encoder_functions[];
|
2021-09-02 04:18:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_PrivateKeyInfo_pem_encoder_functions[];
|
2020-10-17 14:34:47 +08:00
|
|
|
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 18:54:56 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_msblob_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_pvk_encoder_functions[];
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_dsa_to_text_encoder_functions[];
|
2020-02-16 17:54:08 +08:00
|
|
|
|
2020-10-17 14:34:47 +08: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-24 05:41:04 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_blob_encoder_functions[];
|
2021-09-02 04:18:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ec_to_PrivateKeyInfo_pem_encoder_functions[];
|
2020-10-17 14:34:47 +08:00
|
|
|
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 06:40:33 +08:00
|
|
|
|
2021-01-28 15:22:09 +08: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-24 05:41:04 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_blob_encoder_functions[];
|
2021-09-02 04:18:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_sm2_to_PrivateKeyInfo_pem_encoder_functions[];
|
2021-01-28 15:22:09 +08:00
|
|
|
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
|
|
|
|
|
2021-09-02 04:18:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_to_PrivateKeyInfo_pem_encoder_functions[];
|
2020-10-17 14:34:47 +08:00
|
|
|
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 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ed25519_to_text_encoder_functions[];
|
2020-09-14 15:31:36 +08:00
|
|
|
|
2021-09-02 04:18:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ed448_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed448_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ed448_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ed448_to_PrivateKeyInfo_pem_encoder_functions[];
|
2020-10-17 14:34:47 +08:00
|
|
|
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 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ed448_to_text_encoder_functions[];
|
2020-09-14 15:31:36 +08:00
|
|
|
|
2021-09-02 04:18:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_x25519_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x25519_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_x25519_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x25519_to_PrivateKeyInfo_pem_encoder_functions[];
|
2020-10-17 14:34:47 +08:00
|
|
|
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[];
|
|
|
|
|
2021-09-02 04:18:45 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_x448_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x448_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_x448_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_x448_to_PrivateKeyInfo_pem_encoder_functions[];
|
2020-10-17 14:34:47 +08:00
|
|
|
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-10 01:07:12 +08:00
|
|
|
|
2025-01-10 09:41:12 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_44_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_44_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_44_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_44_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_44_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_44_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_44_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_44_to_text_encoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_65_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_65_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_65_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_65_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_65_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_65_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_65_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_65_to_text_encoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_87_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_87_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_87_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_87_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_87_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_87_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_87_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_dsa_87_to_text_encoder_functions[];
|
|
|
|
|
2024-11-19 12:40:13 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128s_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128f_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192s_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192f_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256s_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256f_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128s_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128f_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192s_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192f_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256s_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256f_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128s_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128f_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192s_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192f_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256s_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256f_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128s_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128f_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192s_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192f_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256s_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256f_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128s_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128f_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192s_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192f_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256s_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256f_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128s_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128f_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192s_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192f_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256s_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256f_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128s_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128f_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192s_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192f_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256s_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256f_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128s_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128f_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192s_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192f_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256s_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256f_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128s_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128f_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192s_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192f_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256s_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256f_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128s_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128f_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192s_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192f_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256s_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256f_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128s_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128f_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192s_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192f_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256s_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256f_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128s_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128f_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192s_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192f_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256s_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256f_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128s_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128f_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192s_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192f_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256s_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256f_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128s_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128f_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192s_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192f_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256s_to_OSSL_current_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256f_to_OSSL_current_der_encoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128s_to_text_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_128f_to_text_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192s_to_text_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_192f_to_text_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256s_to_text_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_sha2_256f_to_text_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128s_to_text_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_128f_to_text_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192s_to_text_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_192f_to_text_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256s_to_text_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_slh_dsa_shake_256f_to_text_encoder_functions[];
|
|
|
|
|
2020-09-07 18:25:17 +08:00
|
|
|
/* Decoders */
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_dh_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 20:22:54 +08:00
|
|
|
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[];
|
|
|
|
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_dhx_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 20:22:54 +08:00
|
|
|
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[];
|
|
|
|
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_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 20:22:54 +08:00
|
|
|
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 10:28:29 +08: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 20:22:54 +08:00
|
|
|
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_ec_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 20:22:54 +08:00
|
|
|
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[];
|
|
|
|
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_x25519_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 20:22:54 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_x25519_decoder_functions[];
|
|
|
|
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_x448_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 20:22:54 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_x448_decoder_functions[];
|
|
|
|
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_ed25519_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 20:22:54 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ed25519_decoder_functions[];
|
|
|
|
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_ed448_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 20:22:54 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ed448_decoder_functions[];
|
|
|
|
|
2025-01-09 11:35:03 +08:00
|
|
|
#ifndef OPENSSL_NO_ML_KEM
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_ml_kem_512_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ml_kem_512_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_512_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_512_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_512_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_512_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_512_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_512_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_512_to_text_encoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_ml_kem_768_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ml_kem_768_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_768_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_768_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_768_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_768_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_768_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_768_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_768_to_text_encoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_ml_kem_1024_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ml_kem_1024_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_1024_to_EncryptedPrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_1024_to_EncryptedPrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_1024_to_PrivateKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_1024_to_PrivateKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_1024_to_SubjectPublicKeyInfo_der_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_1024_to_SubjectPublicKeyInfo_pem_encoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_ml_kem_1024_to_text_encoder_functions[];
|
|
|
|
#endif
|
|
|
|
|
2021-01-28 15:22:09 +08:00
|
|
|
#ifndef OPENSSL_NO_SM2
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_sm2_decoder_functions[];
|
2021-01-28 15:22:09 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_sm2_decoder_functions[];
|
2022-07-19 01:18:12 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_type_specific_no_pub_der_to_sm2_decoder_functions[];
|
2021-01-28 15:22:09 +08:00
|
|
|
#endif
|
|
|
|
|
2024-11-19 12:40:13 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_slh_dsa_sha2_128s_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_slh_dsa_sha2_128f_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_slh_dsa_sha2_192s_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_slh_dsa_sha2_192f_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_slh_dsa_sha2_256s_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_slh_dsa_sha2_256f_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_slh_dsa_shake_128s_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_slh_dsa_shake_128f_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_slh_dsa_shake_192s_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_slh_dsa_shake_192f_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_slh_dsa_shake_256s_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_slh_dsa_shake_256f_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_slh_dsa_sha2_128s_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_slh_dsa_sha2_128f_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_slh_dsa_sha2_192s_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_slh_dsa_sha2_192f_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_slh_dsa_sha2_256s_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_slh_dsa_sha2_256f_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_slh_dsa_shake_128s_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_slh_dsa_shake_128f_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_slh_dsa_shake_192s_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_slh_dsa_shake_192f_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_slh_dsa_shake_256s_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_slh_dsa_shake_256f_decoder_functions[];
|
|
|
|
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_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 20:22:54 +08:00
|
|
|
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 10:28:29 +08: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 20:22:54 +08:00
|
|
|
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_rsapss_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 20:22:54 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_rsapss_decoder_functions[];
|
|
|
|
|
2021-05-27 18:34:03 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_EncryptedPrivateKeyInfo_der_to_der_decoder_functions[];
|
2021-06-08 18:49:06 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_der_decoder_functions[];
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_pem_to_der_decoder_functions[];
|
2020-08-02 18:46:00 +08:00
|
|
|
|
2020-09-28 10:28:29 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_file_store_functions[];
|
2022-04-08 20:20:44 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_winstore_store_functions[];
|
2025-01-10 09:41:12 +08:00
|
|
|
|
2024-10-01 00:38:58 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_xdr_to_lms_decoder_functions[];
|
|
|
|
|
2025-01-10 09:41:12 +08:00
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_ml_dsa_44_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ml_dsa_44_decoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_ml_dsa_65_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ml_dsa_65_decoder_functions[];
|
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_PrivateKeyInfo_der_to_ml_dsa_87_decoder_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_SubjectPublicKeyInfo_der_to_ml_dsa_87_decoder_functions[];
|
2025-01-29 00:19:28 +08:00
|
|
|
|
|
|
|
extern const OSSL_DISPATCH ossl_generic_skeymgmt_functions[];
|
|
|
|
extern const OSSL_DISPATCH ossl_aes_skeymgmt_functions[];
|