BCObjectIdentifiers.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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>
  11. * 1.3.6.1.4.1.22554
  12. */
  13. public static readonly DerObjectIdentifier bc = new DerObjectIdentifier("1.3.6.1.4.1.22554");
  14. /**
  15. * pbe(1) algorithms
  16. * <p>
  17. * 1.3.6.1.4.1.22554.1
  18. */
  19. public static readonly DerObjectIdentifier bc_pbe = bc.Branch("1");
  20. /**
  21. * SHA-1(1)
  22. * <p>
  23. * 1.3.6.1.4.1.22554.1.1
  24. */
  25. public static readonly DerObjectIdentifier bc_pbe_sha1 = bc_pbe.Branch("1");
  26. /** SHA-2.SHA-256; 1.3.6.1.4.1.22554.1.2.1 */
  27. public static readonly DerObjectIdentifier bc_pbe_sha256 = bc_pbe.Branch("2.1");
  28. /** SHA-2.SHA-384; 1.3.6.1.4.1.22554.1.2.2 */
  29. public static readonly DerObjectIdentifier bc_pbe_sha384 = bc_pbe.Branch("2.2");
  30. /** SHA-2.SHA-512; 1.3.6.1.4.1.22554.1.2.3 */
  31. public static readonly DerObjectIdentifier bc_pbe_sha512 = bc_pbe.Branch("2.3");
  32. /** SHA-2.SHA-224; 1.3.6.1.4.1.22554.1.2.4 */
  33. public static readonly DerObjectIdentifier bc_pbe_sha224 = bc_pbe.Branch("2.4");
  34. /**
  35. * PKCS-5(1)|PKCS-12(2)
  36. */
  37. /** SHA-1.PKCS5; 1.3.6.1.4.1.22554.1.1.1 */
  38. public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs5 = bc_pbe_sha1.Branch("1");
  39. /** SHA-1.PKCS12; 1.3.6.1.4.1.22554.1.1.2 */
  40. public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12 = bc_pbe_sha1.Branch("2");
  41. /** SHA-256.PKCS12; 1.3.6.1.4.1.22554.1.2.1.1 */
  42. public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs5 = bc_pbe_sha256.Branch("1");
  43. /** SHA-256.PKCS12; 1.3.6.1.4.1.22554.1.2.1.2 */
  44. public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12 = bc_pbe_sha256.Branch("2");
  45. /**
  46. * AES(1) . (CBC-128(2)|CBC-192(22)|CBC-256(42))
  47. */
  48. /** 1.3.6.1.4.1.22554.1.1.2.1.2 */
  49. public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes128_cbc = bc_pbe_sha1_pkcs12.Branch("1.2");
  50. /** 1.3.6.1.4.1.22554.1.1.2.1.22 */
  51. public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes192_cbc = bc_pbe_sha1_pkcs12.Branch("1.22");
  52. /** 1.3.6.1.4.1.22554.1.1.2.1.42 */
  53. public static readonly DerObjectIdentifier bc_pbe_sha1_pkcs12_aes256_cbc = bc_pbe_sha1_pkcs12.Branch("1.42");
  54. /** 1.3.6.1.4.1.22554.1.1.2.2.2 */
  55. public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes128_cbc = bc_pbe_sha256_pkcs12.Branch("1.2");
  56. /** 1.3.6.1.4.1.22554.1.1.2.2.22 */
  57. public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes192_cbc = bc_pbe_sha256_pkcs12.Branch("1.22");
  58. /** 1.3.6.1.4.1.22554.1.1.2.2.42 */
  59. public static readonly DerObjectIdentifier bc_pbe_sha256_pkcs12_aes256_cbc = bc_pbe_sha256_pkcs12.Branch("1.42");
  60. /**
  61. * signature(2) algorithms
  62. */
  63. public static readonly DerObjectIdentifier bc_sig = bc.Branch("2");
  64. /**
  65. * Sphincs-256
  66. */
  67. public static readonly DerObjectIdentifier sphincs256 = bc_sig.Branch("1");
  68. public static readonly DerObjectIdentifier sphincs256_with_BLAKE512 = sphincs256.Branch("1");
  69. public static readonly DerObjectIdentifier sphincs256_with_SHA512 = sphincs256.Branch("2");
  70. public static readonly DerObjectIdentifier sphincs256_with_SHA3_512 = sphincs256.Branch("3");
  71. /**
  72. * XMSS
  73. */
  74. public static readonly DerObjectIdentifier xmss = bc_sig.Branch("2");
  75. public static readonly DerObjectIdentifier xmss_with_SHA256 = xmss.Branch("1");
  76. public static readonly DerObjectIdentifier xmss_with_SHA512 = xmss.Branch("2");
  77. public static readonly DerObjectIdentifier xmss_with_SHAKE128 = xmss.Branch("3");
  78. public static readonly DerObjectIdentifier xmss_with_SHAKE256 = xmss.Branch("4");
  79. /**
  80. * XMSS^MT
  81. */
  82. public static readonly DerObjectIdentifier xmss_mt = bc_sig.Branch("3");
  83. public static readonly DerObjectIdentifier xmss_mt_with_SHA256 = xmss_mt.Branch("1");
  84. public static readonly DerObjectIdentifier xmss_mt_with_SHA512 = xmss_mt.Branch("2");
  85. public static readonly DerObjectIdentifier xmss_mt_with_SHAKE128 = xmss_mt.Branch("3");
  86. public static readonly DerObjectIdentifier xmss_mt_with_SHAKE256 = xmss_mt.Branch("4");
  87. /**
  88. * key_exchange(3) algorithms
  89. */
  90. public static readonly DerObjectIdentifier bc_exch = bc.Branch("3");
  91. /**
  92. * NewHope
  93. */
  94. public static readonly DerObjectIdentifier newHope = bc_exch.Branch("1");
  95. }
  96. }
  97. #pragma warning restore
  98. #endif