2016-10-26 21:12:48 +00:00
|
|
|
/*
|
2023-09-07 08:59:15 +00:00
|
|
|
* Copyright 2006-2023 The OpenSSL Project Authors. All Rights Reserved.
|
2016-10-26 21:12:48 +00:00
|
|
|
*
|
2018-12-06 12:17:34 +00:00
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-10-26 21:12:48 +00:00
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2017-01-06 13:11:50 +00:00
|
|
|
/*
|
2017-11-12 00:03:10 +00:00
|
|
|
* This table MUST be kept in ascending order of the NID each method
|
2017-01-06 13:11:50 +00:00
|
|
|
* represents (corresponding to the pkey_id field) as OBJ_bsearch
|
|
|
|
* is used to search it.
|
|
|
|
*/
|
2016-10-26 21:12:48 +00:00
|
|
|
static const EVP_PKEY_ASN1_METHOD *standard_methods[] = {
|
2021-03-08 23:48:16 +00:00
|
|
|
&ossl_rsa_asn1_meths[0],
|
|
|
|
&ossl_rsa_asn1_meths[1],
|
2016-10-26 21:12:48 +00:00
|
|
|
#ifndef OPENSSL_NO_DH
|
2021-03-08 23:48:16 +00:00
|
|
|
&ossl_dh_asn1_meth,
|
2016-10-26 21:12:48 +00:00
|
|
|
#endif
|
|
|
|
#ifndef OPENSSL_NO_DSA
|
2021-03-08 23:48:16 +00:00
|
|
|
&ossl_dsa_asn1_meths[0],
|
|
|
|
&ossl_dsa_asn1_meths[1],
|
|
|
|
&ossl_dsa_asn1_meths[2],
|
|
|
|
&ossl_dsa_asn1_meths[3],
|
|
|
|
&ossl_dsa_asn1_meths[4],
|
2016-10-26 21:12:48 +00:00
|
|
|
#endif
|
|
|
|
#ifndef OPENSSL_NO_EC
|
2021-03-08 23:48:16 +00:00
|
|
|
&ossl_eckey_asn1_meth,
|
2016-10-26 21:12:48 +00:00
|
|
|
#endif
|
2021-03-08 23:48:16 +00:00
|
|
|
&ossl_rsa_pss_asn1_meth,
|
2016-10-26 21:12:48 +00:00
|
|
|
#ifndef OPENSSL_NO_DH
|
2021-03-08 23:48:16 +00:00
|
|
|
&ossl_dhx_asn1_meth,
|
2016-10-26 21:12:48 +00:00
|
|
|
#endif
|
2023-04-17 08:20:31 +00:00
|
|
|
#ifndef OPENSSL_NO_ECX
|
2021-03-08 23:48:16 +00:00
|
|
|
&ossl_ecx25519_asn1_meth,
|
|
|
|
&ossl_ecx448_asn1_meth,
|
|
|
|
&ossl_ed25519_asn1_meth,
|
|
|
|
&ossl_ed448_asn1_meth,
|
2017-04-05 15:48:32 +00:00
|
|
|
#endif
|
2018-06-18 19:51:56 +00:00
|
|
|
#ifndef OPENSSL_NO_SM2
|
2021-03-08 23:48:16 +00:00
|
|
|
&ossl_sm2_asn1_meth,
|
2018-06-18 19:51:56 +00:00
|
|
|
#endif
|
2016-10-26 21:12:48 +00:00
|
|
|
};
|
|
|
|
|