MiscObjectIdentifiers.cs 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1.Misc
  4. {
  5. public abstract class MiscObjectIdentifiers
  6. {
  7. //
  8. // Netscape
  9. // iso/itu(2) joint-assign(16) us(840) uscompany(1) Netscape(113730) cert-extensions(1) }
  10. //
  11. public static readonly DerObjectIdentifier Netscape = new DerObjectIdentifier("2.16.840.1.113730.1");
  12. public static readonly DerObjectIdentifier NetscapeCertType = Netscape.Branch("1");
  13. public static readonly DerObjectIdentifier NetscapeBaseUrl = Netscape.Branch("2");
  14. public static readonly DerObjectIdentifier NetscapeRevocationUrl = Netscape.Branch("3");
  15. public static readonly DerObjectIdentifier NetscapeCARevocationUrl = Netscape.Branch("4");
  16. public static readonly DerObjectIdentifier NetscapeRenewalUrl = Netscape.Branch("7");
  17. public static readonly DerObjectIdentifier NetscapeCAPolicyUrl = Netscape.Branch("8");
  18. public static readonly DerObjectIdentifier NetscapeSslServerName = Netscape.Branch("12");
  19. public static readonly DerObjectIdentifier NetscapeCertComment = Netscape.Branch("13");
  20. //
  21. // Verisign
  22. // iso/itu(2) joint-assign(16) us(840) uscompany(1) verisign(113733) cert-extensions(1) }
  23. //
  24. public static readonly DerObjectIdentifier Verisign = new DerObjectIdentifier("2.16.840.1.113733.1");
  25. //
  26. // CZAG - country, zip, age, and gender
  27. //
  28. public static readonly DerObjectIdentifier VerisignCzagExtension = Verisign.Branch("6.3");
  29. public static readonly DerObjectIdentifier VerisignPrivate_6_9 = Verisign.Branch("6.9");
  30. public static readonly DerObjectIdentifier VerisignOnSiteJurisdictionHash = Verisign.Branch("6.11");
  31. public static readonly DerObjectIdentifier VerisignBitString_6_13 = Verisign.Branch("6.13");
  32. // D&B D-U-N-S number
  33. public static readonly DerObjectIdentifier VerisignDnbDunsNumber = Verisign.Branch("6.15");
  34. public static readonly DerObjectIdentifier VerisignIssStrongCrypto = Verisign.Branch("8.1");
  35. //
  36. // Novell
  37. // iso/itu(2) country(16) us(840) organization(1) novell(113719)
  38. //
  39. public static readonly DerObjectIdentifier Novell = new DerObjectIdentifier("2.16.840.1.113719");
  40. public static readonly DerObjectIdentifier NovellSecurityAttribs = Novell.Branch("1.9.4.1");
  41. //
  42. // Entrust
  43. // iso(1) member-body(16) us(840) nortelnetworks(113533) entrust(7)
  44. //
  45. public static readonly DerObjectIdentifier Entrust = new DerObjectIdentifier("1.2.840.113533.7");
  46. public static readonly DerObjectIdentifier EntrustVersionExtension = Entrust.Branch("65.0");
  47. public static readonly DerObjectIdentifier cast5CBC = new DerObjectIdentifier(Entrust+ ".66.10");
  48. //
  49. // HMAC-SHA1 hMAC-SHA1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3)
  50. // dod(6) internet(1) security(5) mechanisms(5) 8 1 2 }
  51. //
  52. public static readonly DerObjectIdentifier HMAC_SHA1 = new DerObjectIdentifier("1.3.6.1.5.5.8.1.2");
  53. //
  54. // Ascom
  55. //
  56. public static readonly DerObjectIdentifier as_sys_sec_alg_ideaCBC = new DerObjectIdentifier("1.3.6.1.4.1.188.7.1.1.2");
  57. //
  58. // Peter Gutmann's Cryptlib
  59. //
  60. public static readonly DerObjectIdentifier cryptlib = new DerObjectIdentifier("1.3.6.1.4.1.3029");
  61. public static readonly DerObjectIdentifier cryptlib_algorithm = cryptlib.Branch("1");
  62. public static readonly DerObjectIdentifier cryptlib_algorithm_blowfish_ECB = cryptlib_algorithm.Branch("1.1");
  63. public static readonly DerObjectIdentifier cryptlib_algorithm_blowfish_CBC = cryptlib_algorithm.Branch("1.2");
  64. public static readonly DerObjectIdentifier cryptlib_algorithm_blowfish_CFB = cryptlib_algorithm.Branch("1.3");
  65. public static readonly DerObjectIdentifier cryptlib_algorithm_blowfish_OFB = cryptlib_algorithm.Branch("1.4");
  66. //
  67. // Blake2b
  68. //
  69. public static readonly DerObjectIdentifier blake2 = new DerObjectIdentifier("1.3.6.1.4.1.1722.12.2");
  70. public static readonly DerObjectIdentifier id_blake2b160 = blake2.Branch("1.5");
  71. public static readonly DerObjectIdentifier id_blake2b256 = blake2.Branch("1.8");
  72. public static readonly DerObjectIdentifier id_blake2b384 = blake2.Branch("1.12");
  73. public static readonly DerObjectIdentifier id_blake2b512 = blake2.Branch("1.16");
  74. public static readonly DerObjectIdentifier id_blake2s128 = blake2.Branch("2.4");
  75. public static readonly DerObjectIdentifier id_blake2s160 = blake2.Branch("2.5");
  76. public static readonly DerObjectIdentifier id_blake2s224 = blake2.Branch("2.7");
  77. public static readonly DerObjectIdentifier id_blake2s256 = blake2.Branch("2.8");
  78. public static readonly DerObjectIdentifier blake3 = blake2.Branch("3");
  79. public static readonly DerObjectIdentifier blake3_256 = blake3.Branch("8");
  80. //
  81. // Scrypt
  82. public static readonly DerObjectIdentifier id_scrypt = new DerObjectIdentifier("1.3.6.1.4.1.11591.4.11");
  83. // Composite key/signature oid - prototyping
  84. //
  85. // id-alg-composite OBJECT IDENTIFIER ::= {
  86. // iso(1) identified-organization(3) dod(6) internet(1) private(4)
  87. // enterprise(1) OpenCA(18227) Algorithms(2) id-alg-composite(1) }
  88. public static readonly DerObjectIdentifier id_alg_composite = new DerObjectIdentifier("1.3.6.1.4.1.18227.2.1");
  89. // -- To be replaced by IANA
  90. //
  91. //id-composite-key OBJECT IDENTIFIER ::= {
  92. //
  93. // joint-iso-itu-t(2) country(16) us(840) organization(1) entrust(114027)
  94. //
  95. // Algorithm(80) Composite(4) CompositeKey(1)
  96. public static readonly DerObjectIdentifier id_composite_key =
  97. new DerObjectIdentifier("2.16.840.1.114027.80.4.1");
  98. public static readonly DerObjectIdentifier id_oracle_pkcs12_trusted_key_usage =
  99. new DerObjectIdentifier("2.16.840.1.113894.746875.1.1");
  100. }
  101. }
  102. #pragma warning restore
  103. #endif