2016-10-27 05:12:48 +08:00
|
|
|
/*
|
2017-01-12 05:38:44 +08:00
|
|
|
* Copyright 2006-2017 The OpenSSL Project Authors. All Rights Reserved.
|
2016-10-27 05:12:48 +08:00
|
|
|
*
|
|
|
|
* Licensed under the OpenSSL license (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
|
|
|
|
*/
|
|
|
|
|
2017-01-06 21:11:50 +08:00
|
|
|
/*
|
2017-11-12 08:03:10 +08:00
|
|
|
* This table MUST be kept in ascending order of the NID each method
|
2017-01-06 21:11:50 +08:00
|
|
|
* represents (corresponding to the pkey_id field) as OBJ_bsearch
|
|
|
|
* is used to search it.
|
|
|
|
*/
|
2016-10-27 05:12:48 +08:00
|
|
|
static const EVP_PKEY_ASN1_METHOD *standard_methods[] = {
|
|
|
|
#ifndef OPENSSL_NO_RSA
|
|
|
|
&rsa_asn1_meths[0],
|
|
|
|
&rsa_asn1_meths[1],
|
|
|
|
#endif
|
|
|
|
#ifndef OPENSSL_NO_DH
|
|
|
|
&dh_asn1_meth,
|
|
|
|
#endif
|
|
|
|
#ifndef OPENSSL_NO_DSA
|
|
|
|
&dsa_asn1_meths[0],
|
|
|
|
&dsa_asn1_meths[1],
|
|
|
|
&dsa_asn1_meths[2],
|
|
|
|
&dsa_asn1_meths[3],
|
|
|
|
&dsa_asn1_meths[4],
|
|
|
|
#endif
|
|
|
|
#ifndef OPENSSL_NO_EC
|
|
|
|
&eckey_asn1_meth,
|
|
|
|
#endif
|
|
|
|
&hmac_asn1_meth,
|
|
|
|
#ifndef OPENSSL_NO_CMAC
|
|
|
|
&cmac_asn1_meth,
|
|
|
|
#endif
|
2016-11-25 05:42:49 +08:00
|
|
|
#ifndef OPENSSL_NO_RSA
|
|
|
|
&rsa_pss_asn1_meth,
|
|
|
|
#endif
|
2016-10-27 05:12:48 +08:00
|
|
|
#ifndef OPENSSL_NO_DH
|
|
|
|
&dhx_asn1_meth,
|
|
|
|
#endif
|
|
|
|
#ifndef OPENSSL_NO_EC
|
2016-12-17 06:00:43 +08:00
|
|
|
&ecx25519_asn1_meth,
|
2018-02-28 22:59:44 +08:00
|
|
|
&ecx448_asn1_meth,
|
2016-12-17 06:00:43 +08:00
|
|
|
#endif
|
|
|
|
#ifndef OPENSSL_NO_POLY1305
|
|
|
|
&poly1305_asn1_meth,
|
2016-10-27 05:12:48 +08:00
|
|
|
#endif
|
2017-01-12 05:38:44 +08:00
|
|
|
#ifndef OPENSSL_NO_SIPHASH
|
|
|
|
&siphash_asn1_meth,
|
|
|
|
#endif
|
2017-04-05 23:48:32 +08:00
|
|
|
#ifndef OPENSSL_NO_EC
|
|
|
|
&ed25519_asn1_meth,
|
2018-02-28 22:59:44 +08:00
|
|
|
&ed448_asn1_meth,
|
2017-04-05 23:48:32 +08:00
|
|
|
#endif
|
2016-10-27 05:12:48 +08:00
|
|
|
};
|
|
|
|
|