CmpObjectIdentifiers.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
  5. {
  6. public static class CmpObjectIdentifiers
  7. {
  8. // RFC 4210
  9. /**
  10. * id-PasswordBasedMac OBJECT IDENTIFIER ::= {1 2 840 113533 7 66 13}
  11. */
  12. public static readonly DerObjectIdentifier passwordBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.13");
  13. /**
  14. * id-DHBasedMac OBJECT IDENTIFIER ::= {1 2 840 113533 7 66 30}
  15. */
  16. public static readonly DerObjectIdentifier dhBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.30");
  17. // Example InfoTypeAndValue contents include, but are not limited
  18. // to, the following (un-comment in this ASN.1 module and use as
  19. // appropriate for a given environment):
  20. //
  21. // id-it-caProtEncCert OBJECT IDENTIFIER ::= {id-it 1}
  22. // CAProtEncCertValue ::= CMPCertificate
  23. // id-it-signKeyPairTypes OBJECT IDENTIFIER ::= {id-it 2}
  24. // SignKeyPairTypesValue ::= SEQUENCE OF AlgorithmIdentifier
  25. // id-it-encKeyPairTypes OBJECT IDENTIFIER ::= {id-it 3}
  26. // EncKeyPairTypesValue ::= SEQUENCE OF AlgorithmIdentifier
  27. // id-it-preferredSymmAlg OBJECT IDENTIFIER ::= {id-it 4}
  28. // PreferredSymmAlgValue ::= AlgorithmIdentifier
  29. // id-it-caKeyUpdateInfo OBJECT IDENTIFIER ::= {id-it 5}
  30. // CAKeyUpdateInfoValue ::= CAKeyUpdAnnContent
  31. // id-it-currentCRL OBJECT IDENTIFIER ::= {id-it 6}
  32. // CurrentCRLValue ::= CertificateList
  33. // id-it-unsupportedOIDs OBJECT IDENTIFIER ::= {id-it 7}
  34. // UnsupportedOIDsValue ::= SEQUENCE OF OBJECT IDENTIFIER
  35. // id-it-keyPairParamReq OBJECT IDENTIFIER ::= {id-it 10}
  36. // KeyPairParamReqValue ::= OBJECT IDENTIFIER
  37. // id-it-keyPairParamRep OBJECT IDENTIFIER ::= {id-it 11}
  38. // KeyPairParamRepValue ::= AlgorithmIdentifer
  39. // id-it-revPassphrase OBJECT IDENTIFIER ::= {id-it 12}
  40. // RevPassphraseValue ::= EncryptedValue
  41. // id-it-implicitConfirm OBJECT IDENTIFIER ::= {id-it 13}
  42. // ImplicitConfirmValue ::= NULL
  43. // id-it-confirmWaitTime OBJECT IDENTIFIER ::= {id-it 14}
  44. // ConfirmWaitTimeValue ::= GeneralizedTime
  45. // id-it-origPKIMessage OBJECT IDENTIFIER ::= {id-it 15}
  46. // OrigPKIMessageValue ::= PKIMessages
  47. // id-it-suppLangTags OBJECT IDENTIFIER ::= {id-it 16}
  48. // SuppLangTagsValue ::= SEQUENCE OF UTF8String
  49. // id-it-certProfile OBJECT IDENTIFIER ::= {id-it 21}
  50. // CertProfileValue ::= SEQUENCE SIZE (1..MAX) OF UTF8String
  51. // where
  52. //
  53. // id-pkix OBJECT IDENTIFIER ::= {
  54. // iso(1) identified-organization(3)
  55. // dod(6) internet(1) security(5) mechanisms(5) pkix(7)}
  56. // and
  57. // id-it OBJECT IDENTIFIER ::= {id-pkix 4}
  58. /** RFC 4120: it-id: PKIX.4 = 1.3.6.1.5.5.7.4 */
  59. /**
  60. * RFC 4120: 1.3.6.1.5.5.7.4.1
  61. */
  62. public static readonly DerObjectIdentifier it_caProtEncCert = new DerObjectIdentifier("1.3.6.1.5.5.7.4.1");
  63. /**
  64. * RFC 4120: 1.3.6.1.5.5.7.4.2
  65. */
  66. public static readonly DerObjectIdentifier it_signKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.2");
  67. /**
  68. * RFC 4120: 1.3.6.1.5.5.7.4.3
  69. */
  70. public static readonly DerObjectIdentifier it_encKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.3");
  71. /**
  72. * RFC 4120: 1.3.6.1.5.5.7.4.4
  73. */
  74. public static readonly DerObjectIdentifier it_preferredSymAlg = new DerObjectIdentifier("1.3.6.1.5.5.7.4.4");
  75. /**
  76. * RFC 4120: 1.3.6.1.5.5.7.4.5
  77. */
  78. public static readonly DerObjectIdentifier it_caKeyUpdateInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.4.5");
  79. /**
  80. * RFC 4120: 1.3.6.1.5.5.7.4.6
  81. */
  82. public static readonly DerObjectIdentifier it_currentCRL = new DerObjectIdentifier("1.3.6.1.5.5.7.4.6");
  83. /**
  84. * RFC 4120: 1.3.6.1.5.5.7.4.7
  85. */
  86. public static readonly DerObjectIdentifier it_unsupportedOIDs = new DerObjectIdentifier("1.3.6.1.5.5.7.4.7");
  87. /**
  88. * RFC 4120: 1.3.6.1.5.5.7.4.10
  89. */
  90. public static readonly DerObjectIdentifier it_keyPairParamReq = new DerObjectIdentifier("1.3.6.1.5.5.7.4.10");
  91. /**
  92. * RFC 4120: 1.3.6.1.5.5.7.4.11
  93. */
  94. public static readonly DerObjectIdentifier it_keyPairParamRep = new DerObjectIdentifier("1.3.6.1.5.5.7.4.11");
  95. /**
  96. * RFC 4120: 1.3.6.1.5.5.7.4.12
  97. */
  98. public static readonly DerObjectIdentifier it_revPassphrase = new DerObjectIdentifier("1.3.6.1.5.5.7.4.12");
  99. /**
  100. * RFC 4120: 1.3.6.1.5.5.7.4.13
  101. */
  102. public static readonly DerObjectIdentifier it_implicitConfirm = new DerObjectIdentifier("1.3.6.1.5.5.7.4.13");
  103. /**
  104. * RFC 4120: 1.3.6.1.5.5.7.4.14
  105. */
  106. public static readonly DerObjectIdentifier it_confirmWaitTime = new DerObjectIdentifier("1.3.6.1.5.5.7.4.14");
  107. /**
  108. * RFC 4120: 1.3.6.1.5.5.7.4.15
  109. */
  110. public static readonly DerObjectIdentifier it_origPKIMessage = new DerObjectIdentifier("1.3.6.1.5.5.7.4.15");
  111. /**
  112. * RFC 4120: 1.3.6.1.5.5.7.4.16
  113. */
  114. public static readonly DerObjectIdentifier it_suppLangTags = new DerObjectIdentifier("1.3.6.1.5.5.7.4.16");
  115. /**
  116. * Update 16, RFC 4210
  117. * {id-it 17}
  118. */
  119. public static readonly DerObjectIdentifier id_it_caCerts = new DerObjectIdentifier("1.3.6.1.5.5.7.4.17");
  120. /**
  121. * Update 16, RFC 4210
  122. * GenRep: {id-it 18}, RootCaKeyUpdateContent
  123. */
  124. public static readonly DerObjectIdentifier id_it_rootCaKeyUpdate = new DerObjectIdentifier("1.3.6.1.5.5.7.4.18");
  125. /**
  126. * Update 16, RFC 4210
  127. * {id-it 19}
  128. */
  129. public static readonly DerObjectIdentifier id_it_certReqTemplate = new DerObjectIdentifier("1.3.6.1.5.5.7.4.19");
  130. /**
  131. * Update 16, RFC 4210
  132. * GenMsg: {id-it 20}, RootCaCertValue
  133. */
  134. public static readonly DerObjectIdentifier id_it_rootCaCert = new DerObjectIdentifier("1.3.6.1.5.5.7.4.20");
  135. /**
  136. * Update-16 to RFC 4210
  137. * id-it-certProfile OBJECT IDENTIFIER ::= {id-it 21}
  138. */
  139. public static readonly DerObjectIdentifier id_it_certProfile = new DerObjectIdentifier("1.3.6.1.5.5.7.4.21");
  140. public static readonly DerObjectIdentifier id_it_crlStatusList = new DerObjectIdentifier("1.3.6.1.5.5.7.4.22");
  141. public static readonly DerObjectIdentifier id_it_crls = new DerObjectIdentifier("1.3.6.1.5.5.7.4.23");
  142. // Not yet formally defined.
  143. //public static readonly DerObjectIdentifier id_it_crlStatusList = null;
  144. //public static readonly DerObjectIdentifier id_it_crls = null;
  145. // RFC 4211
  146. // id-pkix OBJECT IDENTIFIER ::= { iso(1) identified-organization(3)
  147. // dod(6) internet(1) security(5) mechanisms(5) pkix(7) }
  148. //
  149. // arc for Internet X.509 PKI protocols and their components
  150. // id-pkip OBJECT IDENTIFIER :: { id-pkix pkip(5) }
  151. //
  152. // arc for Registration Controls in CRMF
  153. // id-regCtrl OBJECT IDENTIFIER ::= { id-pkip regCtrl(1) }
  154. //
  155. // arc for Registration Info in CRMF
  156. // id-regInfo OBJECT IDENTIFIER ::= { id-pkip id-regInfo(2) }
  157. /**
  158. * RFC 4211: it-pkip: PKIX.5 = 1.3.6.1.5.5.7.5
  159. */
  160. public static readonly DerObjectIdentifier id_pkip = new DerObjectIdentifier("1.3.6.1.5.5.7.5");
  161. /**
  162. * RFC 4211: it-regCtrl: 1.3.6.1.5.5.7.5.1
  163. */
  164. public static readonly DerObjectIdentifier id_regCtrl = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1");
  165. /**
  166. * RFC 4211: it-regInfo: 1.3.6.1.5.5.7.5.2
  167. */
  168. public static readonly DerObjectIdentifier id_regInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2");
  169. /**
  170. * 1.3.6.1.5.5.7.5.1.1
  171. */
  172. public static readonly DerObjectIdentifier regCtrl_regToken = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.1");
  173. /**
  174. * 1.3.6.1.5.5.7.5.1.2
  175. */
  176. public static readonly DerObjectIdentifier regCtrl_authenticator = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.2");
  177. /**
  178. * 1.3.6.1.5.5.7.5.1.3
  179. */
  180. public static readonly DerObjectIdentifier regCtrl_pkiPublicationInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.3");
  181. /**
  182. * 1.3.6.1.5.5.7.5.1.4
  183. */
  184. public static readonly DerObjectIdentifier regCtrl_pkiArchiveOptions = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.4");
  185. /**
  186. * 1.3.6.1.5.5.7.5.1.5
  187. */
  188. public static readonly DerObjectIdentifier regCtrl_oldCertID = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.5");
  189. /**
  190. * 1.3.6.1.5.5.7.5.1.6
  191. */
  192. public static readonly DerObjectIdentifier regCtrl_protocolEncrKey = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.6");
  193. /**
  194. * From RFC4210:
  195. * id-regCtrl-altCertTemplate OBJECT IDENTIFIER ::= {id-regCtrl 7}; 1.3.6.1.5.5.7.1.7
  196. */
  197. public static readonly DerObjectIdentifier regCtrl_altCertTemplate = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.7");
  198. /**
  199. * RFC 4211: it-regInfo-utf8Pairs: 1.3.6.1.5.5.7.5.2.1
  200. */
  201. public static readonly DerObjectIdentifier regInfo_utf8Pairs = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.1");
  202. /**
  203. * RFC 4211: it-regInfo-certReq: 1.3.6.1.5.5.7.5.2.1
  204. */
  205. public static readonly DerObjectIdentifier regInfo_certReq = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.2");
  206. /**
  207. * 1.2.840.113549.1.9.16.1.21
  208. * <p>
  209. * id-ct OBJECT IDENTIFIER ::= { id-smime 1 } -- content types
  210. * </p><p>
  211. * id-ct-encKeyWithID OBJECT IDENTIFIER ::= {id-ct 21}
  212. * </p>
  213. */
  214. public static readonly DerObjectIdentifier ct_encKeyWithID = new DerObjectIdentifier("1.2.840.113549.1.9.16.1.21");
  215. /**
  216. * id-regCtrl-algId OBJECT IDENTIFIER ::= { iso(1)
  217. * identified-organization(3) dod(6) internet(1) security(5)
  218. * mechanisms(5) pkix(7) pkip(5) regCtrl(1) 11 }
  219. */
  220. public static readonly DerObjectIdentifier id_regCtrl_algId = id_pkip.Branch("1.11");
  221. /**
  222. * id-regCtrl-rsaKeyLen OBJECT IDENTIFIER ::= { iso(1)
  223. * identified-organization(3) dod(6) internet(1) security(5)
  224. * mechanisms(5) pkix(7) pkip(5) regCtrl(1) 12 }
  225. */
  226. public static readonly DerObjectIdentifier id_regCtrl_rsaKeyLen = id_pkip.Branch("1.12");
  227. }
  228. }
  229. #pragma warning restore
  230. #endif