MiscObjectIdentifiers.cs 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. namespace Org.BouncyCastle.Asn1.Misc
  3. {
  4. public abstract class MiscObjectIdentifiers
  5. {
  6. //
  7. // Netscape
  8. // iso/itu(2) joint-assign(16) us(840) uscompany(1) Netscape(113730) cert-extensions(1) }
  9. //
  10. public static readonly DerObjectIdentifier Netscape = new DerObjectIdentifier("2.16.840.1.113730.1");
  11. public static readonly DerObjectIdentifier NetscapeCertType = Netscape.Branch("1");
  12. public static readonly DerObjectIdentifier NetscapeBaseUrl = Netscape.Branch("2");
  13. public static readonly DerObjectIdentifier NetscapeRevocationUrl = Netscape.Branch("3");
  14. public static readonly DerObjectIdentifier NetscapeCARevocationUrl = Netscape.Branch("4");
  15. public static readonly DerObjectIdentifier NetscapeRenewalUrl = Netscape.Branch("7");
  16. public static readonly DerObjectIdentifier NetscapeCAPolicyUrl = Netscape.Branch("8");
  17. public static readonly DerObjectIdentifier NetscapeSslServerName = Netscape.Branch("12");
  18. public static readonly DerObjectIdentifier NetscapeCertComment = Netscape.Branch("13");
  19. //
  20. // Verisign
  21. // iso/itu(2) joint-assign(16) us(840) uscompany(1) verisign(113733) cert-extensions(1) }
  22. //
  23. public static readonly DerObjectIdentifier Verisign = new DerObjectIdentifier("2.16.840.1.113733.1");
  24. //
  25. // CZAG - country, zip, age, and gender
  26. //
  27. public static readonly DerObjectIdentifier VerisignCzagExtension = Verisign.Branch("6.3");
  28. public static readonly DerObjectIdentifier VerisignPrivate_6_9 = Verisign.Branch("6.9");
  29. public static readonly DerObjectIdentifier VerisignOnSiteJurisdictionHash = Verisign.Branch("6.11");
  30. public static readonly DerObjectIdentifier VerisignBitString_6_13 = Verisign.Branch("6.13");
  31. // D&B D-U-N-S number
  32. public static readonly DerObjectIdentifier VerisignDnbDunsNumber = Verisign.Branch("6.15");
  33. public static readonly DerObjectIdentifier VerisignIssStrongCrypto = Verisign.Branch("8.1");
  34. //
  35. // Novell
  36. // iso/itu(2) country(16) us(840) organization(1) novell(113719)
  37. //
  38. public static readonly string Novell = "2.16.840.1.113719";
  39. public static readonly DerObjectIdentifier NovellSecurityAttribs = new DerObjectIdentifier(Novell + ".1.9.4.1");
  40. //
  41. // Entrust
  42. // iso(1) member-body(16) us(840) nortelnetworks(113533) entrust(7)
  43. //
  44. public static readonly string Entrust = "1.2.840.113533.7";
  45. public static readonly DerObjectIdentifier EntrustVersionExtension = new DerObjectIdentifier(Entrust + ".65.0");
  46. //
  47. // Ascom
  48. //
  49. public static readonly DerObjectIdentifier as_sys_sec_alg_ideaCBC = new DerObjectIdentifier("1.3.6.1.4.1.188.7.1.1.2");
  50. //
  51. // Peter Gutmann's Cryptlib
  52. //
  53. public static readonly DerObjectIdentifier cryptlib = new DerObjectIdentifier("1.3.6.1.4.1.3029");
  54. public static readonly DerObjectIdentifier cryptlib_algorithm = cryptlib.Branch("1");
  55. public static readonly DerObjectIdentifier cryptlib_algorithm_blowfish_ECB = cryptlib_algorithm.Branch("1.1");
  56. public static readonly DerObjectIdentifier cryptlib_algorithm_blowfish_CBC = cryptlib_algorithm.Branch("1.2");
  57. public static readonly DerObjectIdentifier cryptlib_algorithm_blowfish_CFB = cryptlib_algorithm.Branch("1.3");
  58. public static readonly DerObjectIdentifier cryptlib_algorithm_blowfish_OFB = cryptlib_algorithm.Branch("1.4");
  59. //
  60. // Blake2b
  61. //
  62. public static readonly DerObjectIdentifier blake2 = new DerObjectIdentifier("1.3.6.1.4.1.1722.12.2");
  63. public static readonly DerObjectIdentifier id_blake2b160 = blake2.Branch("1.5");
  64. public static readonly DerObjectIdentifier id_blake2b256 = blake2.Branch("1.8");
  65. public static readonly DerObjectIdentifier id_blake2b384 = blake2.Branch("1.12");
  66. public static readonly DerObjectIdentifier id_blake2b512 = blake2.Branch("1.16");
  67. }
  68. }
  69. #endif