| 1 |
/* |
| 2 |
* WARNING: do not edit! |
| 3 |
* Generated by objxref.pl |
| 4 |
* |
| 5 |
* Copyright 1998-2025 The OpenSSL Project Authors. All Rights Reserved. |
| 6 |
* |
| 7 |
* Licensed under the Apache License 2.0 (the "License"). You may not use |
| 8 |
* this file except in compliance with the License. You can obtain a copy |
| 9 |
* in the file LICENSE in the source distribution or at |
| 10 |
* https://www.openssl.org/source/license.html |
| 11 |
*/ |
| 12 |
|
| 13 |
|
| 14 |
typedef struct { |
| 15 |
int sign_id; |
| 16 |
int hash_id; |
| 17 |
int pkey_id; |
| 18 |
} nid_triple; |
| 19 |
|
| 20 |
DEFINE_STACK_OF(nid_triple) |
| 21 |
|
| 22 |
static const nid_triple sigoid_srt[] = { |
| 23 |
{NID_md2WithRSAEncryption, NID_md2, NID_rsaEncryption}, |
| 24 |
{NID_md5WithRSAEncryption, NID_md5, NID_rsaEncryption}, |
| 25 |
{NID_shaWithRSAEncryption, NID_sha, NID_rsaEncryption}, |
| 26 |
{NID_sha1WithRSAEncryption, NID_sha1, NID_rsaEncryption}, |
| 27 |
{NID_dsaWithSHA, NID_sha, NID_dsa}, |
| 28 |
{NID_dsaWithSHA1_2, NID_sha1, NID_dsa_2}, |
| 29 |
{NID_mdc2WithRSA, NID_mdc2, NID_rsaEncryption}, |
| 30 |
{NID_md5WithRSA, NID_md5, NID_rsa}, |
| 31 |
{NID_dsaWithSHA1, NID_sha1, NID_dsa}, |
| 32 |
{NID_sha1WithRSA, NID_sha1, NID_rsa}, |
| 33 |
{NID_ripemd160WithRSA, NID_ripemd160, NID_rsaEncryption}, |
| 34 |
{NID_md4WithRSAEncryption, NID_md4, NID_rsaEncryption}, |
| 35 |
{NID_ecdsa_with_SHA1, NID_sha1, NID_X9_62_id_ecPublicKey}, |
| 36 |
{NID_sha256WithRSAEncryption, NID_sha256, NID_rsaEncryption}, |
| 37 |
{NID_sha384WithRSAEncryption, NID_sha384, NID_rsaEncryption}, |
| 38 |
{NID_sha512WithRSAEncryption, NID_sha512, NID_rsaEncryption}, |
| 39 |
{NID_sha224WithRSAEncryption, NID_sha224, NID_rsaEncryption}, |
| 40 |
{NID_ecdsa_with_Recommended, NID_undef, NID_X9_62_id_ecPublicKey}, |
| 41 |
{NID_ecdsa_with_Specified, NID_undef, NID_X9_62_id_ecPublicKey}, |
| 42 |
{NID_ecdsa_with_SHA224, NID_sha224, NID_X9_62_id_ecPublicKey}, |
| 43 |
{NID_ecdsa_with_SHA256, NID_sha256, NID_X9_62_id_ecPublicKey}, |
| 44 |
{NID_ecdsa_with_SHA384, NID_sha384, NID_X9_62_id_ecPublicKey}, |
| 45 |
{NID_ecdsa_with_SHA512, NID_sha512, NID_X9_62_id_ecPublicKey}, |
| 46 |
{NID_dsa_with_SHA224, NID_sha224, NID_dsa}, |
| 47 |
{NID_dsa_with_SHA256, NID_sha256, NID_dsa}, |
| 48 |
{NID_id_GostR3411_94_with_GostR3410_2001, NID_id_GostR3411_94, |
| 49 |
NID_id_GostR3410_2001}, |
| 50 |
{NID_id_GostR3411_94_with_GostR3410_94, NID_id_GostR3411_94, |
| 51 |
NID_id_GostR3410_94}, |
| 52 |
{NID_id_GostR3411_94_with_GostR3410_94_cc, NID_id_GostR3411_94, |
| 53 |
NID_id_GostR3410_94_cc}, |
| 54 |
{NID_id_GostR3411_94_with_GostR3410_2001_cc, NID_id_GostR3411_94, |
| 55 |
NID_id_GostR3410_2001_cc}, |
| 56 |
{NID_rsassaPss, NID_undef, NID_rsassaPss}, |
| 57 |
{NID_dhSinglePass_stdDH_sha1kdf_scheme, NID_sha1, NID_dh_std_kdf}, |
| 58 |
{NID_dhSinglePass_stdDH_sha224kdf_scheme, NID_sha224, NID_dh_std_kdf}, |
| 59 |
{NID_dhSinglePass_stdDH_sha256kdf_scheme, NID_sha256, NID_dh_std_kdf}, |
| 60 |
{NID_dhSinglePass_stdDH_sha384kdf_scheme, NID_sha384, NID_dh_std_kdf}, |
| 61 |
{NID_dhSinglePass_stdDH_sha512kdf_scheme, NID_sha512, NID_dh_std_kdf}, |
| 62 |
{NID_dhSinglePass_cofactorDH_sha1kdf_scheme, NID_sha1, |
| 63 |
NID_dh_cofactor_kdf}, |
| 64 |
{NID_dhSinglePass_cofactorDH_sha224kdf_scheme, NID_sha224, |
| 65 |
NID_dh_cofactor_kdf}, |
| 66 |
{NID_dhSinglePass_cofactorDH_sha256kdf_scheme, NID_sha256, |
| 67 |
NID_dh_cofactor_kdf}, |
| 68 |
{NID_dhSinglePass_cofactorDH_sha384kdf_scheme, NID_sha384, |
| 69 |
NID_dh_cofactor_kdf}, |
| 70 |
{NID_dhSinglePass_cofactorDH_sha512kdf_scheme, NID_sha512, |
| 71 |
NID_dh_cofactor_kdf}, |
| 72 |
{NID_id_tc26_signwithdigest_gost3410_2012_256, NID_id_GostR3411_2012_256, |
| 73 |
NID_id_GostR3410_2012_256}, |
| 74 |
{NID_id_tc26_signwithdigest_gost3410_2012_512, NID_id_GostR3411_2012_512, |
| 75 |
NID_id_GostR3410_2012_512}, |
| 76 |
{NID_ED25519, NID_undef, NID_ED25519}, |
| 77 |
{NID_ED448, NID_undef, NID_ED448}, |
| 78 |
{NID_ecdsa_with_SHA3_224, NID_sha3_224, NID_X9_62_id_ecPublicKey}, |
| 79 |
{NID_ecdsa_with_SHA3_256, NID_sha3_256, NID_X9_62_id_ecPublicKey}, |
| 80 |
{NID_ecdsa_with_SHA3_384, NID_sha3_384, NID_X9_62_id_ecPublicKey}, |
| 81 |
{NID_ecdsa_with_SHA3_512, NID_sha3_512, NID_X9_62_id_ecPublicKey}, |
| 82 |
{NID_RSA_SHA3_224, NID_sha3_224, NID_rsaEncryption}, |
| 83 |
{NID_RSA_SHA3_256, NID_sha3_256, NID_rsaEncryption}, |
| 84 |
{NID_RSA_SHA3_384, NID_sha3_384, NID_rsaEncryption}, |
| 85 |
{NID_RSA_SHA3_512, NID_sha3_512, NID_rsaEncryption}, |
| 86 |
{NID_SM2_with_SM3, NID_sm3, NID_sm2}, |
| 87 |
{NID_ML_DSA_44, NID_undef, NID_ML_DSA_44}, |
| 88 |
{NID_ML_DSA_65, NID_undef, NID_ML_DSA_65}, |
| 89 |
{NID_ML_DSA_87, NID_undef, NID_ML_DSA_87}, |
| 90 |
{NID_SLH_DSA_SHA2_128s, NID_undef, NID_SLH_DSA_SHA2_128s}, |
| 91 |
{NID_SLH_DSA_SHA2_128f, NID_undef, NID_SLH_DSA_SHA2_128f}, |
| 92 |
{NID_SLH_DSA_SHA2_192s, NID_undef, NID_SLH_DSA_SHA2_192s}, |
| 93 |
{NID_SLH_DSA_SHA2_192f, NID_undef, NID_SLH_DSA_SHA2_192f}, |
| 94 |
{NID_SLH_DSA_SHA2_256s, NID_undef, NID_SLH_DSA_SHA2_256s}, |
| 95 |
{NID_SLH_DSA_SHA2_256f, NID_undef, NID_SLH_DSA_SHA2_256f}, |
| 96 |
{NID_SLH_DSA_SHAKE_128s, NID_undef, NID_SLH_DSA_SHAKE_128s}, |
| 97 |
{NID_SLH_DSA_SHAKE_128f, NID_undef, NID_SLH_DSA_SHAKE_128f}, |
| 98 |
{NID_SLH_DSA_SHAKE_192s, NID_undef, NID_SLH_DSA_SHAKE_192s}, |
| 99 |
{NID_SLH_DSA_SHAKE_192f, NID_undef, NID_SLH_DSA_SHAKE_192f}, |
| 100 |
{NID_SLH_DSA_SHAKE_256s, NID_undef, NID_SLH_DSA_SHAKE_256s}, |
| 101 |
{NID_SLH_DSA_SHAKE_256f, NID_undef, NID_SLH_DSA_SHAKE_256f}, |
| 102 |
}; |
| 103 |
|
| 104 |
static const nid_triple *const sigoid_srt_xref[] = { |
| 105 |
&sigoid_srt[0], |
| 106 |
&sigoid_srt[1], |
| 107 |
&sigoid_srt[7], |
| 108 |
&sigoid_srt[2], |
| 109 |
&sigoid_srt[4], |
| 110 |
&sigoid_srt[3], |
| 111 |
&sigoid_srt[9], |
| 112 |
&sigoid_srt[5], |
| 113 |
&sigoid_srt[8], |
| 114 |
&sigoid_srt[12], |
| 115 |
&sigoid_srt[30], |
| 116 |
&sigoid_srt[35], |
| 117 |
&sigoid_srt[6], |
| 118 |
&sigoid_srt[10], |
| 119 |
&sigoid_srt[11], |
| 120 |
&sigoid_srt[13], |
| 121 |
&sigoid_srt[24], |
| 122 |
&sigoid_srt[20], |
| 123 |
&sigoid_srt[32], |
| 124 |
&sigoid_srt[37], |
| 125 |
&sigoid_srt[14], |
| 126 |
&sigoid_srt[21], |
| 127 |
&sigoid_srt[33], |
| 128 |
&sigoid_srt[38], |
| 129 |
&sigoid_srt[15], |
| 130 |
&sigoid_srt[22], |
| 131 |
&sigoid_srt[34], |
| 132 |
&sigoid_srt[39], |
| 133 |
&sigoid_srt[16], |
| 134 |
&sigoid_srt[23], |
| 135 |
&sigoid_srt[19], |
| 136 |
&sigoid_srt[31], |
| 137 |
&sigoid_srt[36], |
| 138 |
&sigoid_srt[25], |
| 139 |
&sigoid_srt[26], |
| 140 |
&sigoid_srt[27], |
| 141 |
&sigoid_srt[28], |
| 142 |
&sigoid_srt[40], |
| 143 |
&sigoid_srt[41], |
| 144 |
&sigoid_srt[48], |
| 145 |
&sigoid_srt[44], |
| 146 |
&sigoid_srt[49], |
| 147 |
&sigoid_srt[45], |
| 148 |
&sigoid_srt[50], |
| 149 |
&sigoid_srt[46], |
| 150 |
&sigoid_srt[51], |
| 151 |
&sigoid_srt[47], |
| 152 |
&sigoid_srt[52], |
| 153 |
}; |