Copyright consolidation 04/10
[openssl.git] / crypto / objects / obj_xref.h
1 /*
2  * Copyright 2006-2016 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 /* AUTOGENERATED BY objxref.pl, DO NOT EDIT */
11
12 typedef struct {
13     int sign_id;
14     int hash_id;
15     int pkey_id;
16 } nid_triple;
17
18 DEFINE_STACK_OF(nid_triple)
19
20 static const nid_triple sigoid_srt[] = {
21     {NID_md2WithRSAEncryption, NID_md2, NID_rsaEncryption},
22     {NID_md5WithRSAEncryption, NID_md5, NID_rsaEncryption},
23     {NID_shaWithRSAEncryption, NID_sha, NID_rsaEncryption},
24     {NID_sha1WithRSAEncryption, NID_sha1, NID_rsaEncryption},
25     {NID_dsaWithSHA, NID_sha, NID_dsa},
26     {NID_dsaWithSHA1_2, NID_sha1, NID_dsa_2},
27     {NID_mdc2WithRSA, NID_mdc2, NID_rsaEncryption},
28     {NID_md5WithRSA, NID_md5, NID_rsa},
29     {NID_dsaWithSHA1, NID_sha1, NID_dsa},
30     {NID_sha1WithRSA, NID_sha1, NID_rsa},
31     {NID_ripemd160WithRSA, NID_ripemd160, NID_rsaEncryption},
32     {NID_md4WithRSAEncryption, NID_md4, NID_rsaEncryption},
33     {NID_ecdsa_with_SHA1, NID_sha1, NID_X9_62_id_ecPublicKey},
34     {NID_sha256WithRSAEncryption, NID_sha256, NID_rsaEncryption},
35     {NID_sha384WithRSAEncryption, NID_sha384, NID_rsaEncryption},
36     {NID_sha512WithRSAEncryption, NID_sha512, NID_rsaEncryption},
37     {NID_sha224WithRSAEncryption, NID_sha224, NID_rsaEncryption},
38     {NID_ecdsa_with_Recommended, NID_undef, NID_X9_62_id_ecPublicKey},
39     {NID_ecdsa_with_Specified, NID_undef, NID_X9_62_id_ecPublicKey},
40     {NID_ecdsa_with_SHA224, NID_sha224, NID_X9_62_id_ecPublicKey},
41     {NID_ecdsa_with_SHA256, NID_sha256, NID_X9_62_id_ecPublicKey},
42     {NID_ecdsa_with_SHA384, NID_sha384, NID_X9_62_id_ecPublicKey},
43     {NID_ecdsa_with_SHA512, NID_sha512, NID_X9_62_id_ecPublicKey},
44     {NID_dsa_with_SHA224, NID_sha224, NID_dsa},
45     {NID_dsa_with_SHA256, NID_sha256, NID_dsa},
46     {NID_id_GostR3411_94_with_GostR3410_2001, NID_id_GostR3411_94,
47      NID_id_GostR3410_2001},
48     {NID_id_GostR3411_94_with_GostR3410_94, NID_id_GostR3411_94,
49      NID_id_GostR3410_94},
50     {NID_id_GostR3411_94_with_GostR3410_94_cc, NID_id_GostR3411_94,
51      NID_id_GostR3410_94_cc},
52     {NID_id_GostR3411_94_with_GostR3410_2001_cc, NID_id_GostR3411_94,
53      NID_id_GostR3410_2001_cc},
54     {NID_rsassaPss, NID_undef, NID_rsaEncryption},
55     {NID_dhSinglePass_stdDH_sha1kdf_scheme, NID_sha1, NID_dh_std_kdf},
56     {NID_dhSinglePass_stdDH_sha224kdf_scheme, NID_sha224, NID_dh_std_kdf},
57     {NID_dhSinglePass_stdDH_sha256kdf_scheme, NID_sha256, NID_dh_std_kdf},
58     {NID_dhSinglePass_stdDH_sha384kdf_scheme, NID_sha384, NID_dh_std_kdf},
59     {NID_dhSinglePass_stdDH_sha512kdf_scheme, NID_sha512, NID_dh_std_kdf},
60     {NID_dhSinglePass_cofactorDH_sha1kdf_scheme, NID_sha1,
61      NID_dh_cofactor_kdf},
62     {NID_dhSinglePass_cofactorDH_sha224kdf_scheme, NID_sha224,
63      NID_dh_cofactor_kdf},
64     {NID_dhSinglePass_cofactorDH_sha256kdf_scheme, NID_sha256,
65      NID_dh_cofactor_kdf},
66     {NID_dhSinglePass_cofactorDH_sha384kdf_scheme, NID_sha384,
67      NID_dh_cofactor_kdf},
68     {NID_dhSinglePass_cofactorDH_sha512kdf_scheme, NID_sha512,
69      NID_dh_cofactor_kdf},
70     {NID_id_tc26_signwithdigest_gost3410_2012_256, NID_id_GostR3411_2012_256,
71      NID_id_GostR3410_2012_256},
72     {NID_id_tc26_signwithdigest_gost3410_2012_512, NID_id_GostR3411_2012_512,
73      NID_id_GostR3410_2012_512},
74 };
75
76 static const nid_triple *const sigoid_srt_xref[] = {
77     &sigoid_srt[0],
78     &sigoid_srt[1],
79     &sigoid_srt[7],
80     &sigoid_srt[2],
81     &sigoid_srt[4],
82     &sigoid_srt[3],
83     &sigoid_srt[9],
84     &sigoid_srt[5],
85     &sigoid_srt[8],
86     &sigoid_srt[12],
87     &sigoid_srt[30],
88     &sigoid_srt[35],
89     &sigoid_srt[6],
90     &sigoid_srt[10],
91     &sigoid_srt[11],
92     &sigoid_srt[13],
93     &sigoid_srt[24],
94     &sigoid_srt[20],
95     &sigoid_srt[32],
96     &sigoid_srt[37],
97     &sigoid_srt[14],
98     &sigoid_srt[21],
99     &sigoid_srt[33],
100     &sigoid_srt[38],
101     &sigoid_srt[15],
102     &sigoid_srt[22],
103     &sigoid_srt[34],
104     &sigoid_srt[39],
105     &sigoid_srt[16],
106     &sigoid_srt[23],
107     &sigoid_srt[19],
108     &sigoid_srt[31],
109     &sigoid_srt[36],
110     &sigoid_srt[25],
111     &sigoid_srt[26],
112     &sigoid_srt[27],
113     &sigoid_srt[28],
114     &sigoid_srt[40],
115     &sigoid_srt[41],
116 };