1 /*
2  * Automatically generated by ./lib/build_OID_registry.  Do not edit
3  */
4 
5 static const unsigned short oid_index[OID__NR + 1] = {
6 	[OID_id_dsa_with_sha1] = 0,
7 	[OID_id_dsa] = 7,
8 	[OID_id_ecPublicKey] = 14,
9 	[OID_id_prime192v1] = 21,
10 	[OID_id_prime256v1] = 29,
11 	[OID_id_ecdsa_with_sha1] = 37,
12 	[OID_id_ecdsa_with_sha224] = 44,
13 	[OID_id_ecdsa_with_sha256] = 52,
14 	[OID_id_ecdsa_with_sha384] = 60,
15 	[OID_id_ecdsa_with_sha512] = 68,
16 	[OID_rsaEncryption] = 76,
17 	[OID_md2WithRSAEncryption] = 85,
18 	[OID_md3WithRSAEncryption] = 94,
19 	[OID_md4WithRSAEncryption] = 103,
20 	[OID_sha1WithRSAEncryption] = 112,
21 	[OID_sha256WithRSAEncryption] = 121,
22 	[OID_sha384WithRSAEncryption] = 130,
23 	[OID_sha512WithRSAEncryption] = 139,
24 	[OID_sha224WithRSAEncryption] = 148,
25 	[OID_data] = 157,
26 	[OID_signed_data] = 166,
27 	[OID_email_address] = 175,
28 	[OID_contentType] = 184,
29 	[OID_messageDigest] = 193,
30 	[OID_signingTime] = 202,
31 	[OID_smimeCapabilites] = 211,
32 	[OID_smimeAuthenticatedAttrs] = 220,
33 	[OID_md2] = 231,
34 	[OID_md4] = 239,
35 	[OID_md5] = 247,
36 	[OID_mskrb5] = 255,
37 	[OID_krb5] = 264,
38 	[OID_krb5u2u] = 273,
39 	[OID_msIndirectData] = 283,
40 	[OID_msStatementType] = 293,
41 	[OID_msSpOpusInfo] = 303,
42 	[OID_msPeImageDataObjId] = 313,
43 	[OID_msIndividualSPKeyPurpose] = 323,
44 	[OID_msOutlookExpress] = 333,
45 	[OID_ntlmssp] = 342,
46 	[OID_spnego] = 352,
47 	[OID_IAKerb] = 358,
48 	[OID_PKU2U] = 364,
49 	[OID_Scram] = 370,
50 	[OID_certAuthInfoAccess] = 376,
51 	[OID_sha1] = 384,
52 	[OID_id_ansip384r1] = 389,
53 	[OID_sha256] = 394,
54 	[OID_sha384] = 403,
55 	[OID_sha512] = 412,
56 	[OID_sha224] = 421,
57 	[OID_commonName] = 430,
58 	[OID_surname] = 433,
59 	[OID_countryName] = 436,
60 	[OID_locality] = 439,
61 	[OID_stateOrProvinceName] = 442,
62 	[OID_organizationName] = 445,
63 	[OID_organizationUnitName] = 448,
64 	[OID_title] = 451,
65 	[OID_description] = 454,
66 	[OID_name] = 457,
67 	[OID_givenName] = 460,
68 	[OID_initials] = 463,
69 	[OID_generationalQualifier] = 466,
70 	[OID_subjectKeyIdentifier] = 469,
71 	[OID_keyUsage] = 472,
72 	[OID_subjectAltName] = 475,
73 	[OID_issuerAltName] = 478,
74 	[OID_basicConstraints] = 481,
75 	[OID_crlDistributionPoints] = 484,
76 	[OID_certPolicies] = 487,
77 	[OID_authorityKeyIdentifier] = 490,
78 	[OID_extKeyUsage] = 493,
79 	[OID_NetlogonMechanism] = 496,
80 	[OID_appleLocalKdcSupported] = 502,
81 	[OID_gostCPSignA] = 508,
82 	[OID_gostCPSignB] = 515,
83 	[OID_gostCPSignC] = 522,
84 	[OID_gost2012PKey256] = 529,
85 	[OID_gost2012PKey512] = 537,
86 	[OID_gost2012Digest256] = 545,
87 	[OID_gost2012Digest512] = 553,
88 	[OID_gost2012Signature256] = 561,
89 	[OID_gost2012Signature512] = 569,
90 	[OID_gostTC26Sign256A] = 577,
91 	[OID_gostTC26Sign256B] = 586,
92 	[OID_gostTC26Sign256C] = 595,
93 	[OID_gostTC26Sign256D] = 604,
94 	[OID_gostTC26Sign512A] = 613,
95 	[OID_gostTC26Sign512B] = 622,
96 	[OID_gostTC26Sign512C] = 631,
97 	[OID_sm2] = 640,
98 	[OID_sm3] = 648,
99 	[OID_SM2_with_SM3] = 656,
100 	[OID_sm3WithRSAEncryption] = 664,
101 	[OID_TPMLoadableKey] = 672,
102 	[OID_TPMImportableKey] = 678,
103 	[OID_TPMSealedData] = 684,
104 	[OID__NR] = 690
105 };
106 
107 static const unsigned char oid_data[690] = {
108 	42, 134, 72, 206, 46, 4, 3, 	// id_dsa_with_sha1
109 	42, 134, 72, 206, 56, 4, 1, 	// id_dsa
110 	42, 134, 72, 206, 61, 2, 1, 	// id_ecPublicKey
111 	42, 134, 72, 206, 61, 3, 1, 1, 	// id_prime192v1
112 	42, 134, 72, 206, 61, 3, 1, 7, 	// id_prime256v1
113 	42, 134, 72, 206, 61, 4, 1, 	// id_ecdsa_with_sha1
114 	42, 134, 72, 206, 61, 4, 3, 1, 	// id_ecdsa_with_sha224
115 	42, 134, 72, 206, 61, 4, 3, 2, 	// id_ecdsa_with_sha256
116 	42, 134, 72, 206, 61, 4, 3, 3, 	// id_ecdsa_with_sha384
117 	42, 134, 72, 206, 61, 4, 3, 4, 	// id_ecdsa_with_sha512
118 	42, 134, 72, 134, 247, 13, 1, 1, 1, 	// rsaEncryption
119 	42, 134, 72, 134, 247, 13, 1, 1, 2, 	// md2WithRSAEncryption
120 	42, 134, 72, 134, 247, 13, 1, 1, 3, 	// md3WithRSAEncryption
121 	42, 134, 72, 134, 247, 13, 1, 1, 4, 	// md4WithRSAEncryption
122 	42, 134, 72, 134, 247, 13, 1, 1, 5, 	// sha1WithRSAEncryption
123 	42, 134, 72, 134, 247, 13, 1, 1, 11, 	// sha256WithRSAEncryption
124 	42, 134, 72, 134, 247, 13, 1, 1, 12, 	// sha384WithRSAEncryption
125 	42, 134, 72, 134, 247, 13, 1, 1, 13, 	// sha512WithRSAEncryption
126 	42, 134, 72, 134, 247, 13, 1, 1, 14, 	// sha224WithRSAEncryption
127 	42, 134, 72, 134, 247, 13, 1, 7, 1, 	// data
128 	42, 134, 72, 134, 247, 13, 1, 7, 2, 	// signed_data
129 	42, 134, 72, 134, 247, 13, 1, 9, 1, 	// email_address
130 	42, 134, 72, 134, 247, 13, 1, 9, 3, 	// contentType
131 	42, 134, 72, 134, 247, 13, 1, 9, 4, 	// messageDigest
132 	42, 134, 72, 134, 247, 13, 1, 9, 5, 	// signingTime
133 	42, 134, 72, 134, 247, 13, 1, 9, 15, 	// smimeCapabilites
134 	42, 134, 72, 134, 247, 13, 1, 9, 16, 2, 11, 	// smimeAuthenticatedAttrs
135 	42, 134, 72, 134, 247, 13, 2, 2, 	// md2
136 	42, 134, 72, 134, 247, 13, 2, 4, 	// md4
137 	42, 134, 72, 134, 247, 13, 2, 5, 	// md5
138 	42, 134, 72, 130, 247, 18, 1, 2, 2, 	// mskrb5
139 	42, 134, 72, 134, 247, 18, 1, 2, 2, 	// krb5
140 	42, 134, 72, 134, 247, 18, 1, 2, 2, 3, 	// krb5u2u
141 	43, 6, 1, 4, 1, 130, 55, 2, 1, 4, 	// msIndirectData
142 	43, 6, 1, 4, 1, 130, 55, 2, 1, 11, 	// msStatementType
143 	43, 6, 1, 4, 1, 130, 55, 2, 1, 12, 	// msSpOpusInfo
144 	43, 6, 1, 4, 1, 130, 55, 2, 1, 15, 	// msPeImageDataObjId
145 	43, 6, 1, 4, 1, 130, 55, 2, 1, 21, 	// msIndividualSPKeyPurpose
146 	43, 6, 1, 4, 1, 130, 55, 16, 4, 	// msOutlookExpress
147 	43, 6, 1, 4, 1, 130, 55, 2, 2, 10, 	// ntlmssp
148 	43, 6, 1, 5, 5, 2, 	// spnego
149 	43, 6, 1, 5, 2, 5, 	// IAKerb
150 	43, 5, 1, 5, 2, 7, 	// PKU2U
151 	43, 6, 1, 5, 5, 14, 	// Scram
152 	43, 6, 1, 5, 5, 7, 1, 1, 	// certAuthInfoAccess
153 	43, 14, 3, 2, 26, 	// sha1
154 	43, 129, 4, 0, 34, 	// id_ansip384r1
155 	96, 134, 72, 1, 101, 3, 4, 2, 1, 	// sha256
156 	96, 134, 72, 1, 101, 3, 4, 2, 2, 	// sha384
157 	96, 134, 72, 1, 101, 3, 4, 2, 3, 	// sha512
158 	96, 134, 72, 1, 101, 3, 4, 2, 4, 	// sha224
159 	85, 4, 3, 	// commonName
160 	85, 4, 4, 	// surname
161 	85, 4, 6, 	// countryName
162 	85, 4, 7, 	// locality
163 	85, 4, 8, 	// stateOrProvinceName
164 	85, 4, 10, 	// organizationName
165 	85, 4, 11, 	// organizationUnitName
166 	85, 4, 12, 	// title
167 	85, 4, 13, 	// description
168 	85, 4, 41, 	// name
169 	85, 4, 42, 	// givenName
170 	85, 4, 43, 	// initials
171 	85, 4, 44, 	// generationalQualifier
172 	85, 29, 14, 	// subjectKeyIdentifier
173 	85, 29, 15, 	// keyUsage
174 	85, 29, 17, 	// subjectAltName
175 	85, 29, 18, 	// issuerAltName
176 	85, 29, 19, 	// basicConstraints
177 	85, 29, 31, 	// crlDistributionPoints
178 	85, 29, 32, 	// certPolicies
179 	85, 29, 35, 	// authorityKeyIdentifier
180 	85, 29, 37, 	// extKeyUsage
181 	42, 133, 112, 43, 14, 2, 	// NetlogonMechanism
182 	42, 133, 112, 43, 14, 3, 	// appleLocalKdcSupported
183 	42, 133, 3, 2, 2, 35, 1, 	// gostCPSignA
184 	42, 133, 3, 2, 2, 35, 2, 	// gostCPSignB
185 	42, 133, 3, 2, 2, 35, 3, 	// gostCPSignC
186 	42, 133, 3, 7, 1, 1, 1, 1, 	// gost2012PKey256
187 	42, 133, 3, 7, 1, 1, 1, 2, 	// gost2012PKey512
188 	42, 133, 3, 7, 1, 1, 2, 2, 	// gost2012Digest256
189 	42, 133, 3, 7, 1, 1, 2, 3, 	// gost2012Digest512
190 	42, 133, 3, 7, 1, 1, 3, 2, 	// gost2012Signature256
191 	42, 133, 3, 7, 1, 1, 3, 3, 	// gost2012Signature512
192 	42, 133, 3, 7, 1, 2, 1, 1, 1, 	// gostTC26Sign256A
193 	42, 133, 3, 7, 1, 2, 1, 1, 2, 	// gostTC26Sign256B
194 	42, 133, 3, 7, 1, 2, 1, 1, 3, 	// gostTC26Sign256C
195 	42, 133, 3, 7, 1, 2, 1, 1, 4, 	// gostTC26Sign256D
196 	42, 133, 3, 7, 1, 2, 1, 2, 1, 	// gostTC26Sign512A
197 	42, 133, 3, 7, 1, 2, 1, 2, 2, 	// gostTC26Sign512B
198 	42, 133, 3, 7, 1, 2, 1, 2, 3, 	// gostTC26Sign512C
199 	42, 129, 28, 207, 85, 1, 130, 45, 	// sm2
200 	42, 129, 28, 207, 85, 1, 131, 17, 	// sm3
201 	42, 129, 28, 207, 85, 1, 131, 117, 	// SM2_with_SM3
202 	42, 129, 28, 207, 85, 1, 131, 120, 	// sm3WithRSAEncryption
203 	103, 129, 5, 10, 1, 3, 	// TPMLoadableKey
204 	103, 129, 5, 10, 1, 4, 	// TPMImportableKey
205 	103, 129, 5, 10, 1, 5, 	// TPMSealedData
206 };
207 
208 static const struct {
209 	unsigned char hash;
210 	enum OID oid : 8;
211 } oid_search_table[OID__NR] = {
212 	[  0] = {  10, OID_title                               }, // 55040c
213 	[  1] = {  11, OID_spnego                              }, // 2b0601050502
214 	[  2] = {  11, OID_IAKerb                              }, // 2b0601050205
215 	[  3] = {  13, OID_id_ansip384r1                       }, // 2b81040022
216 	[  4] = {  19, OID_gostTC26Sign512C                    }, // 2a8503070102010203
217 	[  5] = {  19, OID_gostTC26Sign256D                    }, // 2a8503070102010104
218 	[  6] = {  23, OID_issuerAltName                       }, // 551d12
219 	[  7] = {  23, OID_initials                            }, // 55042b
220 	[  8] = {  29, OID_md2WithRSAEncryption                }, // 2a864886f70d010102
221 	[  9] = {  30, OID_md2                                 }, // 2a864886f70d0202
222 	[ 10] = {  32, OID_id_dsa_with_sha1                    }, // 2a8648ce2e0403
223 	[ 11] = {  35, OID_contentType                         }, // 2a864886f70d010903
224 	[ 12] = {  35, OID_sha256WithRSAEncryption             }, // 2a864886f70d01010b
225 	[ 13] = {  36, OID_authorityKeyIdentifier              }, // 551d23
226 	[ 14] = {  37, OID_description                         }, // 55040d
227 	[ 15] = {  43, OID_id_dsa                              }, // 2a8648ce380401
228 	[ 16] = {  44, OID_PKU2U                               }, // 2b0501050207
229 	[ 17] = {  44, OID_krb5u2u                             }, // 2a864886f71201020203
230 	[ 18] = {  49, OID_id_ecdsa_with_sha224                }, // 2a8648ce3d040301
231 	[ 19] = {  51, OID_msIndividualSPKeyPurpose            }, // 2b060104018237020115
232 	[ 20] = {  52, OID_SM2_with_SM3                        }, // 2a811ccf55018375
233 	[ 21] = {  54, OID_basicConstraints                    }, // 551d13
234 	[ 22] = {  54, OID_generationalQualifier               }, // 55042c
235 	[ 23] = {  60, OID_gostCPSignA                         }, // 2a850302022301
236 	[ 24] = {  60, OID_md3WithRSAEncryption                }, // 2a864886f70d010103
237 	[ 25] = {  64, OID_TPMLoadableKey                      }, // 6781050a0103
238 	[ 26] = {  64, OID_krb5                                }, // 2a864886f712010202
239 	[ 27] = {  64, OID_signed_data                         }, // 2a864886f70d010702
240 	[ 28] = {  76, OID_id_prime192v1                       }, // 2a8648ce3d030101
241 	[ 29] = {  77, OID_countryName                         }, // 550406
242 	[ 30] = {  77, OID_id_ecdsa_with_sha1                  }, // 2a8648ce3d0401
243 	[ 31] = {  83, OID_sha256                              }, // 608648016503040201
244 	[ 32] = {  84, OID_sm2                                 }, // 2a811ccf5501822d
245 	[ 33] = {  85, OID_smimeCapabilites                    }, // 2a864886f70d01090f
246 	[ 34] = {  87, OID_sha1                                }, // 2b0e03021a
247 	[ 35] = {  93, OID_gostCPSignB                         }, // 2a850302022302
248 	[ 36] = {  97, OID_email_address                       }, // 2a864886f70d010901
249 	[ 37] = { 106, OID_extKeyUsage                         }, // 551d25
250 	[ 38] = { 106, OID_msPeImageDataObjId                  }, // 2b06010401823702010f
251 	[ 39] = { 110, OID_locality                            }, // 550407
252 	[ 40] = { 124, OID_gost2012PKey256                     }, // 2a85030701010101
253 	[ 41] = { 126, OID_gostCPSignC                         }, // 2a850302022303
254 	[ 42] = { 126, OID_rsaEncryption                       }, // 2a864886f70d010101
255 	[ 43] = { 130, OID_TPMSealedData                       }, // 6781050a0105
256 	[ 44] = { 132, OID_smimeAuthenticatedAttrs             }, // 2a864886f70d010910020b
257 	[ 45] = { 134, OID_Scram                               }, // 2b060105050e
258 	[ 46] = { 142, OID_id_ecPublicKey                      }, // 2a8648ce3d0201
259 	[ 47] = { 142, OID_sha224WithRSAEncryption             }, // 2a864886f70d01010e
260 	[ 48] = { 143, OID_stateOrProvinceName                 }, // 550408
261 	[ 49] = { 145, OID_sm3WithRSAEncryption                }, // 2a811ccf55018378
262 	[ 50] = { 146, OID_subjectKeyIdentifier                }, // 551d0e
263 	[ 51] = { 150, OID_id_ecdsa_with_sha512                }, // 2a8648ce3d040304
264 	[ 52] = { 150, OID_id_prime256v1                       }, // 2a8648ce3d030107
265 	[ 53] = { 157, OID_gost2012PKey512                     }, // 2a85030701010102
266 	[ 54] = { 157, OID_sha512                              }, // 608648016503040203
267 	[ 55] = { 160, OID_data                                }, // 2a864886f70d010701
268 	[ 56] = { 161, OID_crlDistributionPoints               }, // 551d1f
269 	[ 57] = { 161, OID_TPMImportableKey                    }, // 6781050a0104
270 	[ 58] = { 173, OID_msOutlookExpress                    }, // 2b0601040182371004
271 	[ 59] = { 178, OID_sha384                              }, // 608648016503040202
272 	[ 60] = { 179, OID_keyUsage                            }, // 551d0f
273 	[ 61] = { 179, OID_NetlogonMechanism                   }, // 2a85702b0e02
274 	[ 62] = { 190, OID_gost2012Digest256                   }, // 2a85030701010202
275 	[ 63] = { 191, OID_gostTC26Sign256A                    }, // 2a8503070102010101
276 	[ 64] = { 195, OID_mskrb5                              }, // 2a864882f712010202
277 	[ 65] = { 195, OID_md4WithRSAEncryption                }, // 2a864886f70d010104
278 	[ 66] = { 198, OID_certPolicies                        }, // 551d20
279 	[ 67] = { 200, OID_msSpOpusInfo                        }, // 2b06010401823702010c
280 	[ 68] = { 201, OID_organizationName                    }, // 55040a
281 	[ 69] = { 204, OID_messageDigest                       }, // 2a864886f70d010904
282 	[ 70] = { 204, OID_sha384WithRSAEncryption             }, // 2a864886f70d01010c
283 	[ 71] = { 208, OID_id_ecdsa_with_sha256                }, // 2a8648ce3d040302
284 	[ 72] = { 208, OID_gostTC26Sign512A                    }, // 2a8503070102010201
285 	[ 73] = { 208, OID_gostTC26Sign256B                    }, // 2a8503070102010102
286 	[ 74] = { 212, OID_name                                }, // 550429
287 	[ 75] = { 213, OID_commonName                          }, // 550403
288 	[ 76] = { 213, OID_sm3                                 }, // 2a811ccf55018311
289 	[ 77] = { 220, OID_md4                                 }, // 2a864886f70d0204
290 	[ 78] = { 223, OID_gost2012Signature256                }, // 2a85030701010302
291 	[ 79] = { 223, OID_gost2012Digest512                   }, // 2a85030701010203
292 	[ 80] = { 226, OID_sha1WithRSAEncryption               }, // 2a864886f70d010105
293 	[ 81] = { 227, OID_md5                                 }, // 2a864886f70d0205
294 	[ 82] = { 228, OID_certAuthInfoAccess                  }, // 2b06010505070101
295 	[ 83] = { 231, OID_ntlmssp                             }, // 2b06010401823702020a
296 	[ 84] = { 231, OID_msStatementType                     }, // 2b06010401823702010b
297 	[ 85] = { 234, OID_organizationUnitName                }, // 55040b
298 	[ 86] = { 236, OID_appleLocalKdcSupported              }, // 2a85702b0e03
299 	[ 87] = { 237, OID_signingTime                         }, // 2a864886f70d010905
300 	[ 88] = { 237, OID_sha512WithRSAEncryption             }, // 2a864886f70d01010d
301 	[ 89] = { 240, OID_gost2012Signature512                }, // 2a85030701010303
302 	[ 90] = { 241, OID_gostTC26Sign512B                    }, // 2a8503070102010202
303 	[ 91] = { 241, OID_gostTC26Sign256C                    }, // 2a8503070102010103
304 	[ 92] = { 244, OID_surname                             }, // 550404
305 	[ 93] = { 245, OID_subjectAltName                      }, // 551d11
306 	[ 94] = { 245, OID_givenName                           }, // 55042a
307 	[ 95] = { 247, OID_id_ecdsa_with_sha384                }, // 2a8648ce3d040303
308 	[ 96] = { 252, OID_sha224                              }, // 608648016503040204
309 	[ 97] = { 255, OID_msIndirectData                      }, // 2b060104018237020104
310 };
311