1 /* 2 * Copyright 2006-2018 The OpenSSL Project Authors. All Rights Reserved. 3 * 4 * Licensed under the OpenSSL license (the "License"). You may not use 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 7 * https://www.openssl.org/source/license.html 8 */ 9 10 /* 11 * This table MUST be kept in ascending order of the NID each method 12 * represents (corresponding to the pkey_id field) as OBJ_bsearch 13 * is used to search it. 14 */ 15 static const EVP_PKEY_ASN1_METHOD *standard_methods[] = { 16 #ifndef OPENSSL_NO_RSA 17 &rsa_asn1_meths[0], 18 &rsa_asn1_meths[1], 19 #endif 20 #ifndef OPENSSL_NO_DH 21 &dh_asn1_meth, 22 #endif 23 #ifndef OPENSSL_NO_DSA 24 &dsa_asn1_meths[0], 25 &dsa_asn1_meths[1], 26 &dsa_asn1_meths[2], 27 &dsa_asn1_meths[3], 28 &dsa_asn1_meths[4], 29 #endif 30 #ifndef OPENSSL_NO_EC 31 &eckey_asn1_meth, 32 #endif 33 &hmac_asn1_meth, 34 #ifndef OPENSSL_NO_CMAC 35 &cmac_asn1_meth, 36 #endif 37 #ifndef OPENSSL_NO_RSA 38 &rsa_pss_asn1_meth, 39 #endif 40 #ifndef OPENSSL_NO_DH 41 &dhx_asn1_meth, 42 #endif 43 #ifndef OPENSSL_NO_EC 44 &ecx25519_asn1_meth, 45 &ecx448_asn1_meth, 46 #endif 47 #ifndef OPENSSL_NO_POLY1305 48 &poly1305_asn1_meth, 49 #endif 50 #ifndef OPENSSL_NO_SIPHASH 51 &siphash_asn1_meth, 52 #endif 53 #ifndef OPENSSL_NO_EC 54 &ed25519_asn1_meth, 55 &ed448_asn1_meth, 56 #endif 57 #ifndef OPENSSL_NO_SM2 58 &sm2_asn1_meth, 59 #endif 60 }; 61 62