BCObjectIdentifiers.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.BC
  5. {
  6. public abstract class BCObjectIdentifiers
  7. {
  8. /**
  9. * iso.org.dod.internet.private.enterprise.legion-of-the-bouncy-castle
  10. * <p>1.3.6.1.4.1.22554</p>
  11. */
  12. public static readonly DerObjectIdentifier bc = new DerObjectIdentifier("1.3.6.1.4.1.22554");
  13. /**
  14. * pbe(1) algorithms
  15. * <p>1.3.6.1.4.1.22554.1</p>
  16. */
  17. public static readonly DerObjectIdentifier bc_pbe = bc.Branch("1");
  18. /**
  19. * SHA-1(1)
  20. * <p>1.3.6.1.4.1.22554.1.1</p>
  21. */
  22. public static readonly DerObjectIdentifier bc_pbe_sha1 = bc_pbe.Branch("1");
  23. /** SHA-2.SHA-256; 1.3.6.1.4.1.22554.1.2.1 */
  24. public static readonly DerObjectIdentifier bc_pbe_sha256 = bc_pbe.Branch("2.1");
  25. /** SHA-2.SHA-384; 1.3.6.1.4.1.22554.1.2.2 */
  26. public static readonly DerObjectIdentifier bc_pbe_sha384 = bc_pbe.Branch("2.2");
  27. /** SHA-2.SHA-512; 1.3.6.1.4.1.22554.1.2.3 */
  28. public static readonly DerObjectIdentifier bc_pbe_sha512 = bc_pbe.Branch("2.3");
  29. /** SHA-2.SHA-224; 1.3.6.1.4.1.22554.1.2.4 */
  30. public static readonly DerObjectIdentifier bc_pbe_sha224 = bc_pbe.Branch("2.4");
  31. /**
  32. * PKCS-5(1)|PKCS-12(2)
  33. */
  34. /** SHA-1.PKCS5; 1.3.6.1.4.1.22554.1.1.1 */
  35. public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs5 = bc_pbe_sha1.Branch("1");
  36. /** SHA-1.PKCS12; 1.3.6.1.4.1.22554.1.1.2 */
  37. public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12 = bc_pbe_sha1.Branch("2");
  38. /** SHA-256.PKCS12; 1.3.6.1.4.1.22554.1.2.1.1 */
  39. public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs5 = bc_pbe_sha256.Branch("1");
  40. /** SHA-256.PKCS12; 1.3.6.1.4.1.22554.1.2.1.2 */
  41. public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12 = bc_pbe_sha256.Branch("2");
  42. /**
  43. * AES(1) . (CBC-128(2)|CBC-192(22)|CBC-256(42))
  44. */
  45. /** 1.3.6.1.4.1.22554.1.1.2.1.2 */
  46. public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes128_cbc = bc_pbe_sha1_pkcs12.Branch("1.2");
  47. /** 1.3.6.1.4.1.22554.1.1.2.1.22 */
  48. public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes192_cbc = bc_pbe_sha1_pkcs12.Branch("1.22");
  49. /** 1.3.6.1.4.1.22554.1.1.2.1.42 */
  50. public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes256_cbc = bc_pbe_sha1_pkcs12.Branch("1.42");
  51. /** 1.3.6.1.4.1.22554.1.1.2.2.2 */
  52. public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes128_cbc = bc_pbe_sha256_pkcs12.Branch("1.2");
  53. /** 1.3.6.1.4.1.22554.1.1.2.2.22 */
  54. public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes192_cbc = bc_pbe_sha256_pkcs12.Branch("1.22");
  55. /** 1.3.6.1.4.1.22554.1.1.2.2.42 */
  56. public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes256_cbc = bc_pbe_sha256_pkcs12.Branch("1.42");
  57. /**
  58. * signature(2) algorithms
  59. */
  60. public static readonly DerObjectIdentifier bc_sig = bc.Branch("2");
  61. /**
  62. * Sphincs-256
  63. */
  64. public static readonly DerObjectIdentifier sphincs256 = bc_sig.Branch("1");
  65. public static readonly DerObjectIdentifier sphincs256_with_BLAKE512 = sphincs256.Branch("1");
  66. public static readonly DerObjectIdentifier sphincs256_with_SHA512 = sphincs256.Branch("2");
  67. public static readonly DerObjectIdentifier sphincs256_with_SHA3_512 = sphincs256.Branch("3");
  68. /**
  69. * XMSS
  70. */
  71. public static readonly DerObjectIdentifier xmss = bc_sig.Branch("2");
  72. public static readonly DerObjectIdentifier xmss_with_SHA256 = xmss.Branch("1");
  73. public static readonly DerObjectIdentifier xmss_with_SHA512 = xmss.Branch("2");
  74. public static readonly DerObjectIdentifier xmss_with_SHAKE128 = xmss.Branch("3");
  75. public static readonly DerObjectIdentifier xmss_with_SHAKE256 = xmss.Branch("4");
  76. /**
  77. * XMSS^MT
  78. */
  79. public static readonly DerObjectIdentifier xmss_mt = bc_sig.Branch("3");
  80. public static readonly DerObjectIdentifier xmss_mt_with_SHA256 = xmss_mt.Branch("1");
  81. public static readonly DerObjectIdentifier xmss_mt_with_SHA512 = xmss_mt.Branch("2");
  82. public static readonly DerObjectIdentifier xmss_mt_with_SHAKE128 = xmss_mt.Branch("3");
  83. public static readonly DerObjectIdentifier xmss_mt_with_SHAKE256 = xmss_mt.Branch("4");
  84. /**
  85. * key_exchange(3) algorithms
  86. */
  87. public static readonly DerObjectIdentifier bc_exch = bc.Branch("3");
  88. /**
  89. * NewHope
  90. */
  91. public static readonly DerObjectIdentifier newHope = bc_exch.Branch("1");
  92. /**
  93. * X.509 extension(4) values
  94. * <p>
  95. * 1.3.6.1.4.1.22554.4
  96. */
  97. public static readonly DerObjectIdentifier bc_ext = bc.Branch("4");
  98. public static readonly DerObjectIdentifier linkedCertificate = bc_ext.Branch("1");
  99. }
  100. }
  101. #pragma warning restore
  102. #endif