1 /* THIS FILE IS GENERATED FROM obj_xref.txt by obj_xref.pl via the
2  * following command:
3  * perl obj_xref.pl obj_mac.num obj_xref.txt > obj_xref.h */
4 
5 typedef struct
6 	{
7 	int sign_id;
8 	int hash_id;
9 	int pkey_id;
10 	} nid_triple;
11 
12 static const nid_triple sigoid_srt[] =
13 	{
14 	{NID_md2WithRSAEncryption, NID_md2, NID_rsaEncryption},
15 	{NID_md5WithRSAEncryption, NID_md5, NID_rsaEncryption},
16 	{NID_shaWithRSAEncryption, NID_sha, NID_rsaEncryption},
17 	{NID_sha1WithRSAEncryption, NID_sha1, NID_rsaEncryption},
18 	{NID_dsaWithSHA, NID_sha, NID_dsa},
19 	{NID_dsaWithSHA1_2, NID_sha1, NID_dsa_2},
20 	{NID_mdc2WithRSA, NID_mdc2, NID_rsaEncryption},
21 	{NID_md5WithRSA, NID_md5, NID_rsa},
22 	{NID_dsaWithSHA1, NID_sha1, NID_dsa},
23 	{NID_sha1WithRSA, NID_sha1, NID_rsa},
24 	{NID_ripemd160WithRSA, NID_ripemd160, NID_rsaEncryption},
25 	{NID_md4WithRSAEncryption, NID_md4, NID_rsaEncryption},
26 	{NID_ecdsa_with_SHA1, NID_sha1, NID_X9_62_id_ecPublicKey},
27 	{NID_sha256WithRSAEncryption, NID_sha256, NID_rsaEncryption},
28 	{NID_sha384WithRSAEncryption, NID_sha384, NID_rsaEncryption},
29 	{NID_sha512WithRSAEncryption, NID_sha512, NID_rsaEncryption},
30 	{NID_sha224WithRSAEncryption, NID_sha224, NID_rsaEncryption},
31 	{NID_ecdsa_with_Recommended, NID_undef, NID_X9_62_id_ecPublicKey},
32 	{NID_ecdsa_with_Specified, NID_undef, NID_X9_62_id_ecPublicKey},
33 	{NID_ecdsa_with_SHA224, NID_sha224, NID_X9_62_id_ecPublicKey},
34 	{NID_ecdsa_with_SHA256, NID_sha256, NID_X9_62_id_ecPublicKey},
35 	{NID_ecdsa_with_SHA384, NID_sha384, NID_X9_62_id_ecPublicKey},
36 	{NID_ecdsa_with_SHA512, NID_sha512, NID_X9_62_id_ecPublicKey},
37 	{NID_dsa_with_SHA224, NID_sha224, NID_dsa},
38 	{NID_dsa_with_SHA256, NID_sha256, NID_dsa},
39 	{NID_id_GostR3411_94_with_GostR3410_2001, NID_id_GostR3411_94, NID_id_GostR3410_2001},
40 	{NID_id_GostR3411_94_with_GostR3410_94, NID_id_GostR3411_94, NID_id_GostR3410_94},
41 	{NID_id_GostR3411_94_with_GostR3410_94_cc, NID_id_GostR3411_94, NID_id_GostR3410_94_cc},
42 	{NID_id_GostR3411_94_with_GostR3410_2001_cc, NID_id_GostR3411_94, NID_id_GostR3410_2001_cc},
43 	{NID_rsassaPss, NID_undef, NID_rsaEncryption},
44 	{NID_dhSinglePass_stdDH_sha1kdf_scheme, NID_sha1, NID_dh_std_kdf},
45 	{NID_dhSinglePass_stdDH_sha224kdf_scheme, NID_sha224, NID_dh_std_kdf},
46 	{NID_dhSinglePass_stdDH_sha256kdf_scheme, NID_sha256, NID_dh_std_kdf},
47 	{NID_dhSinglePass_stdDH_sha384kdf_scheme, NID_sha384, NID_dh_std_kdf},
48 	{NID_dhSinglePass_stdDH_sha512kdf_scheme, NID_sha512, NID_dh_std_kdf},
49 	{NID_dhSinglePass_cofactorDH_sha1kdf_scheme, NID_sha1, NID_dh_cofactor_kdf},
50 	{NID_dhSinglePass_cofactorDH_sha224kdf_scheme, NID_sha224, NID_dh_cofactor_kdf},
51 	{NID_dhSinglePass_cofactorDH_sha256kdf_scheme, NID_sha256, NID_dh_cofactor_kdf},
52 	{NID_dhSinglePass_cofactorDH_sha384kdf_scheme, NID_sha384, NID_dh_cofactor_kdf},
53 	{NID_dhSinglePass_cofactorDH_sha512kdf_scheme, NID_sha512, NID_dh_cofactor_kdf},
54 	};
55 
56 static const nid_triple * const sigoid_srt_xref[] =
57 	{
58 	&sigoid_srt[0],
59 	&sigoid_srt[1],
60 	&sigoid_srt[7],
61 	&sigoid_srt[2],
62 	&sigoid_srt[4],
63 	&sigoid_srt[3],
64 	&sigoid_srt[9],
65 	&sigoid_srt[5],
66 	&sigoid_srt[8],
67 	&sigoid_srt[12],
68 	&sigoid_srt[30],
69 	&sigoid_srt[35],
70 	&sigoid_srt[6],
71 	&sigoid_srt[10],
72 	&sigoid_srt[11],
73 	&sigoid_srt[13],
74 	&sigoid_srt[24],
75 	&sigoid_srt[20],
76 	&sigoid_srt[32],
77 	&sigoid_srt[37],
78 	&sigoid_srt[14],
79 	&sigoid_srt[21],
80 	&sigoid_srt[33],
81 	&sigoid_srt[38],
82 	&sigoid_srt[15],
83 	&sigoid_srt[22],
84 	&sigoid_srt[34],
85 	&sigoid_srt[39],
86 	&sigoid_srt[16],
87 	&sigoid_srt[23],
88 	&sigoid_srt[19],
89 	&sigoid_srt[31],
90 	&sigoid_srt[36],
91 	&sigoid_srt[25],
92 	&sigoid_srt[26],
93 	&sigoid_srt[27],
94 	&sigoid_srt[28],
95 	};
96 
97