oid_registry_data.c 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. /*
  2. * Automatically generated by ./lib/build_OID_registry. Do not edit
  3. */
  4. static const unsigned short oid_index[OID__NR + 1] = {
  5. [OID_id_dsa_with_sha1] = 0,
  6. [OID_id_dsa] = 7,
  7. [OID_id_ecdsa_with_sha1] = 14,
  8. [OID_id_ecPublicKey] = 21,
  9. [OID_rsaEncryption] = 28,
  10. [OID_md2WithRSAEncryption] = 37,
  11. [OID_md3WithRSAEncryption] = 46,
  12. [OID_md4WithRSAEncryption] = 55,
  13. [OID_sha1WithRSAEncryption] = 64,
  14. [OID_sha256WithRSAEncryption] = 73,
  15. [OID_sha384WithRSAEncryption] = 82,
  16. [OID_sha512WithRSAEncryption] = 91,
  17. [OID_sha224WithRSAEncryption] = 100,
  18. [OID_data] = 109,
  19. [OID_signed_data] = 118,
  20. [OID_email_address] = 127,
  21. [OID_contentType] = 136,
  22. [OID_messageDigest] = 145,
  23. [OID_signingTime] = 154,
  24. [OID_smimeCapabilites] = 163,
  25. [OID_smimeAuthenticatedAttrs] = 172,
  26. [OID_md2] = 183,
  27. [OID_md4] = 191,
  28. [OID_md5] = 199,
  29. [OID_msIndirectData] = 207,
  30. [OID_msStatementType] = 217,
  31. [OID_msSpOpusInfo] = 227,
  32. [OID_msPeImageDataObjId] = 237,
  33. [OID_msIndividualSPKeyPurpose] = 247,
  34. [OID_msOutlookExpress] = 257,
  35. [OID_certAuthInfoAccess] = 266,
  36. [OID_sha1] = 274,
  37. [OID_sha256] = 279,
  38. [OID_sha384] = 288,
  39. [OID_sha512] = 297,
  40. [OID_sha224] = 306,
  41. [OID_commonName] = 315,
  42. [OID_surname] = 318,
  43. [OID_countryName] = 321,
  44. [OID_locality] = 324,
  45. [OID_stateOrProvinceName] = 327,
  46. [OID_organizationName] = 330,
  47. [OID_organizationUnitName] = 333,
  48. [OID_title] = 336,
  49. [OID_description] = 339,
  50. [OID_name] = 342,
  51. [OID_givenName] = 345,
  52. [OID_initials] = 348,
  53. [OID_generationalQualifier] = 351,
  54. [OID_subjectKeyIdentifier] = 354,
  55. [OID_keyUsage] = 357,
  56. [OID_subjectAltName] = 360,
  57. [OID_issuerAltName] = 363,
  58. [OID_basicConstraints] = 366,
  59. [OID_crlDistributionPoints] = 369,
  60. [OID_certPolicies] = 372,
  61. [OID_authorityKeyIdentifier] = 375,
  62. [OID_extKeyUsage] = 378,
  63. [OID__NR] = 381
  64. };
  65. static const unsigned char oid_data[381] = {
  66. 42, 134, 72, 206, 46, 4, 3, // id_dsa_with_sha1
  67. 42, 134, 72, 206, 56, 4, 1, // id_dsa
  68. 42, 134, 72, 206, 61, 4, 1, // id_ecdsa_with_sha1
  69. 42, 134, 72, 206, 61, 2, 1, // id_ecPublicKey
  70. 42, 134, 72, 134, 247, 13, 1, 1, 1, // rsaEncryption
  71. 42, 134, 72, 134, 247, 13, 1, 1, 2, // md2WithRSAEncryption
  72. 42, 134, 72, 134, 247, 13, 1, 1, 3, // md3WithRSAEncryption
  73. 42, 134, 72, 134, 247, 13, 1, 1, 4, // md4WithRSAEncryption
  74. 42, 134, 72, 134, 247, 13, 1, 1, 5, // sha1WithRSAEncryption
  75. 42, 134, 72, 134, 247, 13, 1, 1, 11, // sha256WithRSAEncryption
  76. 42, 134, 72, 134, 247, 13, 1, 1, 12, // sha384WithRSAEncryption
  77. 42, 134, 72, 134, 247, 13, 1, 1, 13, // sha512WithRSAEncryption
  78. 42, 134, 72, 134, 247, 13, 1, 1, 14, // sha224WithRSAEncryption
  79. 42, 134, 72, 134, 247, 13, 1, 7, 1, // data
  80. 42, 134, 72, 134, 247, 13, 1, 7, 2, // signed_data
  81. 42, 134, 72, 134, 247, 13, 1, 9, 1, // email_address
  82. 42, 134, 72, 134, 247, 13, 1, 9, 3, // contentType
  83. 42, 134, 72, 134, 247, 13, 1, 9, 4, // messageDigest
  84. 42, 134, 72, 134, 247, 13, 1, 9, 5, // signingTime
  85. 42, 134, 72, 134, 247, 13, 1, 9, 15, // smimeCapabilites
  86. 42, 134, 72, 134, 247, 13, 1, 9, 16, 2, 11, // smimeAuthenticatedAttrs
  87. 42, 134, 72, 134, 247, 13, 2, 2, // md2
  88. 42, 134, 72, 134, 247, 13, 2, 4, // md4
  89. 42, 134, 72, 134, 247, 13, 2, 5, // md5
  90. 43, 6, 1, 4, 1, 130, 55, 2, 1, 4, // msIndirectData
  91. 43, 6, 1, 4, 1, 130, 55, 2, 1, 11, // msStatementType
  92. 43, 6, 1, 4, 1, 130, 55, 2, 1, 12, // msSpOpusInfo
  93. 43, 6, 1, 4, 1, 130, 55, 2, 1, 15, // msPeImageDataObjId
  94. 43, 6, 1, 4, 1, 130, 55, 2, 1, 21, // msIndividualSPKeyPurpose
  95. 43, 6, 1, 4, 1, 130, 55, 16, 4, // msOutlookExpress
  96. 43, 6, 1, 5, 5, 7, 1, 1, // certAuthInfoAccess
  97. 43, 14, 3, 2, 26, // sha1
  98. 96, 134, 72, 1, 101, 3, 4, 2, 1, // sha256
  99. 96, 134, 72, 1, 101, 3, 4, 2, 2, // sha384
  100. 96, 134, 72, 1, 101, 3, 4, 2, 3, // sha512
  101. 96, 134, 72, 1, 101, 3, 4, 2, 4, // sha224
  102. 85, 4, 3, // commonName
  103. 85, 4, 4, // surname
  104. 85, 4, 6, // countryName
  105. 85, 4, 7, // locality
  106. 85, 4, 8, // stateOrProvinceName
  107. 85, 4, 10, // organizationName
  108. 85, 4, 11, // organizationUnitName
  109. 85, 4, 12, // title
  110. 85, 4, 13, // description
  111. 85, 4, 41, // name
  112. 85, 4, 42, // givenName
  113. 85, 4, 43, // initials
  114. 85, 4, 44, // generationalQualifier
  115. 85, 29, 14, // subjectKeyIdentifier
  116. 85, 29, 15, // keyUsage
  117. 85, 29, 17, // subjectAltName
  118. 85, 29, 18, // issuerAltName
  119. 85, 29, 19, // basicConstraints
  120. 85, 29, 31, // crlDistributionPoints
  121. 85, 29, 32, // certPolicies
  122. 85, 29, 35, // authorityKeyIdentifier
  123. 85, 29, 37, // extKeyUsage
  124. };
  125. static const struct {
  126. unsigned char hash;
  127. enum OID oid : 8;
  128. } oid_search_table[OID__NR] = {
  129. [ 0] = { 10, OID_title }, // 55040c
  130. [ 1] = { 23, OID_issuerAltName }, // 551d12
  131. [ 2] = { 23, OID_initials }, // 55042b
  132. [ 3] = { 29, OID_md2WithRSAEncryption }, // 2a864886f70d010102
  133. [ 4] = { 30, OID_md2 }, // 2a864886f70d0202
  134. [ 5] = { 32, OID_id_dsa_with_sha1 }, // 2a8648ce2e0403
  135. [ 6] = { 35, OID_contentType }, // 2a864886f70d010903
  136. [ 7] = { 35, OID_sha256WithRSAEncryption }, // 2a864886f70d01010b
  137. [ 8] = { 36, OID_authorityKeyIdentifier }, // 551d23
  138. [ 9] = { 37, OID_description }, // 55040d
  139. [ 10] = { 43, OID_id_dsa }, // 2a8648ce380401
  140. [ 11] = { 51, OID_msIndividualSPKeyPurpose }, // 2b060104018237020115
  141. [ 12] = { 54, OID_basicConstraints }, // 551d13
  142. [ 13] = { 54, OID_generationalQualifier }, // 55042c
  143. [ 14] = { 60, OID_md3WithRSAEncryption }, // 2a864886f70d010103
  144. [ 15] = { 64, OID_signed_data }, // 2a864886f70d010702
  145. [ 16] = { 77, OID_countryName }, // 550406
  146. [ 17] = { 77, OID_id_ecdsa_with_sha1 }, // 2a8648ce3d0401
  147. [ 18] = { 83, OID_sha256 }, // 608648016503040201
  148. [ 19] = { 85, OID_smimeCapabilites }, // 2a864886f70d01090f
  149. [ 20] = { 87, OID_sha1 }, // 2b0e03021a
  150. [ 21] = { 97, OID_email_address }, // 2a864886f70d010901
  151. [ 22] = { 106, OID_extKeyUsage }, // 551d25
  152. [ 23] = { 106, OID_msPeImageDataObjId }, // 2b06010401823702010f
  153. [ 24] = { 110, OID_locality }, // 550407
  154. [ 25] = { 126, OID_rsaEncryption }, // 2a864886f70d010101
  155. [ 26] = { 132, OID_smimeAuthenticatedAttrs }, // 2a864886f70d010910020b
  156. [ 27] = { 142, OID_id_ecPublicKey }, // 2a8648ce3d0201
  157. [ 28] = { 142, OID_sha224WithRSAEncryption }, // 2a864886f70d01010e
  158. [ 29] = { 143, OID_stateOrProvinceName }, // 550408
  159. [ 30] = { 146, OID_subjectKeyIdentifier }, // 551d0e
  160. [ 31] = { 157, OID_sha512 }, // 608648016503040203
  161. [ 32] = { 160, OID_data }, // 2a864886f70d010701
  162. [ 33] = { 161, OID_crlDistributionPoints }, // 551d1f
  163. [ 34] = { 173, OID_msOutlookExpress }, // 2b0601040182371004
  164. [ 35] = { 178, OID_sha384 }, // 608648016503040202
  165. [ 36] = { 179, OID_keyUsage }, // 551d0f
  166. [ 37] = { 195, OID_md4WithRSAEncryption }, // 2a864886f70d010104
  167. [ 38] = { 198, OID_certPolicies }, // 551d20
  168. [ 39] = { 200, OID_msSpOpusInfo }, // 2b06010401823702010c
  169. [ 40] = { 201, OID_organizationName }, // 55040a
  170. [ 41] = { 204, OID_messageDigest }, // 2a864886f70d010904
  171. [ 42] = { 204, OID_sha384WithRSAEncryption }, // 2a864886f70d01010c
  172. [ 43] = { 212, OID_name }, // 550429
  173. [ 44] = { 213, OID_commonName }, // 550403
  174. [ 45] = { 220, OID_md4 }, // 2a864886f70d0204
  175. [ 46] = { 226, OID_sha1WithRSAEncryption }, // 2a864886f70d010105
  176. [ 47] = { 227, OID_md5 }, // 2a864886f70d0205
  177. [ 48] = { 228, OID_certAuthInfoAccess }, // 2b06010505070101
  178. [ 49] = { 231, OID_msStatementType }, // 2b06010401823702010b
  179. [ 50] = { 234, OID_organizationUnitName }, // 55040b
  180. [ 51] = { 237, OID_signingTime }, // 2a864886f70d010905
  181. [ 52] = { 237, OID_sha512WithRSAEncryption }, // 2a864886f70d01010d
  182. [ 53] = { 244, OID_surname }, // 550404
  183. [ 54] = { 245, OID_subjectAltName }, // 551d11
  184. [ 55] = { 245, OID_givenName }, // 55042a
  185. [ 56] = { 252, OID_sha224 }, // 608648016503040204
  186. [ 57] = { 255, OID_msIndirectData }, // 2b060104018237020104
  187. };