BCObjectIdentifiers.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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.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. * SPHINCS+
  86. */
  87. public static readonly DerObjectIdentifier sphincsPlus = bc_sig.Branch("5");
  88. public static readonly DerObjectIdentifier sphincsPlus_shake_256 = sphincsPlus.Branch("1");
  89. public static readonly DerObjectIdentifier sphincsPlus_sha_256 = sphincsPlus.Branch("2");
  90. public static readonly DerObjectIdentifier sphincsPlus_sha_512 = sphincsPlus.Branch("3");
  91. /**
  92. * Picnic
  93. */
  94. public static readonly DerObjectIdentifier picnic = bc_sig.Branch("6");
  95. public static readonly DerObjectIdentifier picnicl1fs = picnic.Branch("1");
  96. public static readonly DerObjectIdentifier picnicl1ur = picnic.Branch("2");
  97. public static readonly DerObjectIdentifier picnicl3fs = picnic.Branch("3");
  98. public static readonly DerObjectIdentifier picnicl3ur = picnic.Branch("4");
  99. public static readonly DerObjectIdentifier picnicl5fs = picnic.Branch("5");
  100. public static readonly DerObjectIdentifier picnicl5ur = picnic.Branch("6");
  101. public static readonly DerObjectIdentifier picnic3l1 = picnic.Branch("7");
  102. public static readonly DerObjectIdentifier picnic3l3 = picnic.Branch("8");
  103. public static readonly DerObjectIdentifier picnic3l5 = picnic.Branch("9");
  104. public static readonly DerObjectIdentifier picnicl1full = picnic.Branch("10");
  105. public static readonly DerObjectIdentifier picnicl3full = picnic.Branch("11");
  106. public static readonly DerObjectIdentifier picnicl5full = picnic.Branch("12");
  107. /*
  108. * Falcon
  109. */
  110. public static readonly DerObjectIdentifier falcon = bc_sig.Branch("7");
  111. public static readonly DerObjectIdentifier falcon_512 = new DerObjectIdentifier("1.3.9999.3.1"); // falcon.branch("1");
  112. public static readonly DerObjectIdentifier falcon_1024 = new DerObjectIdentifier("1.3.9999.3.4"); // falcon.branch("2");
  113. /*
  114. * Dilithium
  115. */
  116. public static readonly DerObjectIdentifier dilithium = bc_sig.Branch("8");
  117. // OpenSSL OIDs
  118. public static readonly DerObjectIdentifier dilithium2 = new DerObjectIdentifier("1.3.6.1.4.1.2.267.7.4.4"); // dilithium.branch("1");
  119. public static readonly DerObjectIdentifier dilithium3 = new DerObjectIdentifier("1.3.6.1.4.1.2.267.7.6.5"); // dilithium.branch("2");
  120. public static readonly DerObjectIdentifier dilithium5 = new DerObjectIdentifier("1.3.6.1.4.1.2.267.7.8.7"); // dilithium.branch("3");
  121. public static readonly DerObjectIdentifier dilithium2_aes = new DerObjectIdentifier("1.3.6.1.4.1.2.267.11.4.4"); // dilithium.branch("4");
  122. public static readonly DerObjectIdentifier dilithium3_aes = new DerObjectIdentifier("1.3.6.1.4.1.2.267.11.6.5"); // dilithium.branch("5");
  123. public static readonly DerObjectIdentifier dilithium5_aes = new DerObjectIdentifier("1.3.6.1.4.1.2.267.11.8.7"); // dilithium.branch("6");
  124. /**
  125. * key_exchange(3) algorithms
  126. */
  127. public static readonly DerObjectIdentifier bc_exch = bc.Branch("3");
  128. /**
  129. * NewHope
  130. */
  131. public static readonly DerObjectIdentifier newHope = bc_exch.Branch("1");
  132. /**
  133. * X.509 extension(4) values
  134. * <p/>
  135. * 1.3.6.1.4.1.22554.4
  136. */
  137. public static readonly DerObjectIdentifier bc_ext = bc.Branch("4");
  138. public static readonly DerObjectIdentifier linkedCertificate = bc_ext.Branch("1");
  139. /**
  140. * KEM(4) algorithms
  141. */
  142. public static readonly DerObjectIdentifier bc_kem = bc.Branch("5");
  143. /**
  144. * Classic McEliece
  145. */
  146. public static readonly DerObjectIdentifier pqc_kem_mceliece = bc_kem.Branch("1");
  147. public static readonly DerObjectIdentifier mceliece348864_r3 = pqc_kem_mceliece.Branch("1");
  148. public static readonly DerObjectIdentifier mceliece348864f_r3 = pqc_kem_mceliece.Branch("2");
  149. public static readonly DerObjectIdentifier mceliece460896_r3 = pqc_kem_mceliece.Branch("3");
  150. public static readonly DerObjectIdentifier mceliece460896f_r3 = pqc_kem_mceliece.Branch("4");
  151. public static readonly DerObjectIdentifier mceliece6688128_r3 = pqc_kem_mceliece.Branch("5");
  152. public static readonly DerObjectIdentifier mceliece6688128f_r3 = pqc_kem_mceliece.Branch("6");
  153. public static readonly DerObjectIdentifier mceliece6960119_r3 = pqc_kem_mceliece.Branch("7");
  154. public static readonly DerObjectIdentifier mceliece6960119f_r3 = pqc_kem_mceliece.Branch("8");
  155. public static readonly DerObjectIdentifier mceliece8192128_r3 = pqc_kem_mceliece.Branch("9");
  156. public static readonly DerObjectIdentifier mceliece8192128f_r3 = pqc_kem_mceliece.Branch("10");
  157. /**
  158. * SABER
  159. */
  160. public static readonly DerObjectIdentifier pqc_kem_saber = bc_kem.Branch("3");
  161. public static readonly DerObjectIdentifier lightsaberkem128r3 = pqc_kem_saber.Branch("1");
  162. public static readonly DerObjectIdentifier saberkem128r3 = pqc_kem_saber.Branch("2");
  163. public static readonly DerObjectIdentifier firesaberkem128r3 = pqc_kem_saber.Branch("3");
  164. public static readonly DerObjectIdentifier lightsaberkem192r3 = pqc_kem_saber.Branch("4");
  165. public static readonly DerObjectIdentifier saberkem192r3 = pqc_kem_saber.Branch("5");
  166. public static readonly DerObjectIdentifier firesaberkem192r3 = pqc_kem_saber.Branch("6");
  167. public static readonly DerObjectIdentifier lightsaberkem256r3 = pqc_kem_saber.Branch("7");
  168. public static readonly DerObjectIdentifier saberkem256r3 = pqc_kem_saber.Branch("8");
  169. public static readonly DerObjectIdentifier firesaberkem256r3 = pqc_kem_saber.Branch("9");
  170. public static readonly DerObjectIdentifier ulightsaberkemr3 = pqc_kem_saber.Branch("10");
  171. public static readonly DerObjectIdentifier usaberkemr3 = pqc_kem_saber.Branch("11");
  172. public static readonly DerObjectIdentifier ufiresaberkemr3 = pqc_kem_saber.Branch("12");
  173. public static readonly DerObjectIdentifier lightsaberkem90sr3 = pqc_kem_saber.Branch("13");
  174. public static readonly DerObjectIdentifier saberkem90sr3 = pqc_kem_saber.Branch("14");
  175. public static readonly DerObjectIdentifier firesaberkem90sr3 = pqc_kem_saber.Branch("15");
  176. public static readonly DerObjectIdentifier ulightsaberkem90sr3 = pqc_kem_saber.Branch("16");
  177. public static readonly DerObjectIdentifier usaberkem90sr3 = pqc_kem_saber.Branch("17");
  178. public static readonly DerObjectIdentifier ufiresaberkem90sr3 = pqc_kem_saber.Branch("18");
  179. /**
  180. * SIKE
  181. */
  182. public static readonly DerObjectIdentifier pqc_kem_sike = bc_kem.Branch("4");
  183. public static readonly DerObjectIdentifier sikep434 = pqc_kem_sike.Branch("1");
  184. public static readonly DerObjectIdentifier sikep503 = pqc_kem_sike.Branch("2");
  185. public static readonly DerObjectIdentifier sikep610 = pqc_kem_sike.Branch("3");
  186. public static readonly DerObjectIdentifier sikep751 = pqc_kem_sike.Branch("4");
  187. public static readonly DerObjectIdentifier sikep434_compressed = pqc_kem_sike.Branch("5");
  188. public static readonly DerObjectIdentifier sikep503_compressed = pqc_kem_sike.Branch("6");
  189. public static readonly DerObjectIdentifier sikep610_compressed = pqc_kem_sike.Branch("7");
  190. public static readonly DerObjectIdentifier sikep751_compressed = pqc_kem_sike.Branch("8");
  191. /**
  192. * Kyber
  193. */
  194. public static readonly DerObjectIdentifier pqc_kem_kyber = bc_kem.Branch("6");
  195. public static readonly DerObjectIdentifier kyber512 = new DerObjectIdentifier("1.3.6.1.4.1.2.267.8.2.2"); // pqc_kem_kyber.Branch("1");
  196. public static readonly DerObjectIdentifier kyber768 = new DerObjectIdentifier("1.3.6.1.4.1.2.267.8.3.3"); // pqc_kem_kyber.Branch("2");
  197. public static readonly DerObjectIdentifier kyber1024 = new DerObjectIdentifier("1.3.6.1.4.1.2.267.8.4.4"); // pqc_kem_kyber.Branch("3");
  198. public static readonly DerObjectIdentifier kyber512_aes = new DerObjectIdentifier("1.3.6.1.4.1.2.267.10.2.2"); // pqc_kem_kyber.Branch("4");
  199. public static readonly DerObjectIdentifier kyber768_aes = new DerObjectIdentifier("1.3.6.1.4.1.2.267.10.3.3"); // pqc_kem_kyber.Branch("5");
  200. public static readonly DerObjectIdentifier kyber1024_aes = new DerObjectIdentifier("1.3.6.1.4.1.2.267.10.4.4"); // pqc_kem_kyber.Branch("6");
  201. /**
  202. * BIKE
  203. */
  204. public static readonly DerObjectIdentifier pqc_kem_bike = bc_kem.Branch("8");
  205. public static readonly DerObjectIdentifier bike128 = pqc_kem_bike.Branch("1");
  206. public static readonly DerObjectIdentifier bike192 = pqc_kem_bike.Branch("2");
  207. public static readonly DerObjectIdentifier bike256 = pqc_kem_bike.Branch("3");
  208. /**
  209. * HQC
  210. */
  211. public static readonly DerObjectIdentifier pqc_kem_hqc = bc_kem.Branch("9");
  212. public static readonly DerObjectIdentifier hqc128 = pqc_kem_hqc.Branch("1");
  213. public static readonly DerObjectIdentifier hqc192 = pqc_kem_hqc.Branch("2");
  214. public static readonly DerObjectIdentifier hqc256 = pqc_kem_hqc.Branch("3");
  215. }
  216. }
  217. #pragma warning restore
  218. #endif