UAObjectIdentifiers.cs 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.UA
  4. {
  5. /**
  6. * Ukrainian object identifiers
  7. * <p>
  8. * {iso(1) member-body(2) Ukraine(804) root(2) security(1) cryptography(1) pki(1)}
  9. * <p>
  10. * { ... pki-alg(1) pki-alg-sym(3) Dstu4145WithGost34311(1) PB(1)}
  11. * <p>
  12. * DSTU4145 in polynomial basis has 2 oids, one for little-endian representation and one for big-endian
  13. */
  14. public abstract class UAObjectIdentifiers
  15. {
  16. /** Base OID: 1.2.804.2.1.1.1 */
  17. public static readonly DerObjectIdentifier UaOid = new DerObjectIdentifier("1.2.804.2.1.1.1");
  18. /** DSTU4145 Little Endian presentation. OID: 1.2.804.2.1.1.1.1.3.1.1 */
  19. public static readonly DerObjectIdentifier dstu4145le = UaOid.Branch("1.3.1.1");
  20. /** DSTU4145 Big Endian presentation. OID: 1.2.804.2.1.1.1.1.3.1.1.1 */
  21. public static readonly DerObjectIdentifier dstu4145be = UaOid.Branch("1.3.1.1.1.1");
  22. /** DSTU7564 256-bit digest presentation. */
  23. public static readonly DerObjectIdentifier dstu7564digest_256 = UaOid.Branch("1.2.2.1");
  24. /** DSTU7564 384-bit digest presentation. */
  25. public static readonly DerObjectIdentifier dstu7564digest_384 = UaOid.Branch("1.2.2.2");
  26. /** DSTU7564 512-bit digest presentation. */
  27. public static readonly DerObjectIdentifier dstu7564digest_512 = UaOid.Branch("1.2.2.3");
  28. /** DSTU7564 256-bit mac presentation. */
  29. public static readonly DerObjectIdentifier dstu7564mac_256 = UaOid.Branch("1.2.2.4");
  30. /** DSTU7564 384-bit mac presentation. */
  31. public static readonly DerObjectIdentifier dstu7564mac_384 = UaOid.Branch("1.2.2.5");
  32. /** DSTU7564 512-bit mac presentation. */
  33. public static readonly DerObjectIdentifier dstu7564mac_512 = UaOid.Branch("1.2.2.6");
  34. /** DSTU7624 in ECB mode with 128 bit block/key presentation */
  35. public static readonly DerObjectIdentifier dstu7624ecb_128 = UaOid.Branch("1.1.3.1.1");
  36. /** DSTU7624 in ECB mode with 256 bit block/key presentation */
  37. public static readonly DerObjectIdentifier dstu7624ecb_256 = UaOid.Branch("1.1.3.1.2");
  38. /** DSTU7624 in ECB mode with 512 bit block/key presentation */
  39. public static readonly DerObjectIdentifier dstu7624ecb_512 = UaOid.Branch("1.1.3.1.3");
  40. /** DSTU7624 in CTR mode with 128 bit block/key presentation */
  41. public static readonly DerObjectIdentifier dstu7624ctr_128 = UaOid.Branch("1.1.3.2.1");
  42. /** DSTU7624 in CTR mode with 256 bit block/key presentation */
  43. public static readonly DerObjectIdentifier dstu7624ctr_256 = UaOid.Branch("1.1.3.2.2");
  44. /** DSTU7624 in CTR mode with 512 bit block/key presentation */
  45. public static readonly DerObjectIdentifier dstu7624ctr_512 = UaOid.Branch("1.1.3.2.3");
  46. /** DSTU7624 in CFB mode with 128 bit block/key presentation */
  47. public static readonly DerObjectIdentifier dstu7624cfb_128 = UaOid.Branch("1.1.3.3.1");
  48. /** DSTU7624 in CFB mode with 256 bit block/key presentation */
  49. public static readonly DerObjectIdentifier dstu7624cfb_256 = UaOid.Branch("1.1.3.3.2");
  50. /** DSTU7624 in CFB mode with 512 bit block/key presentation */
  51. public static readonly DerObjectIdentifier dstu7624cfb_512 = UaOid.Branch("1.1.3.3.3");
  52. /** DSTU7624 in MAC mode with 128 bit block/key presentation */
  53. public static readonly DerObjectIdentifier dstu7624cmac_128 = UaOid.Branch("1.1.3.4.1");
  54. /** DSTU7624 in MAC mode with 256 bit block/key presentation */
  55. public static readonly DerObjectIdentifier dstu7624cmac_256 = UaOid.Branch("1.1.3.4.2");
  56. /** DSTU7624 in MAC mode with 512 bit block/key presentation */
  57. public static readonly DerObjectIdentifier dstu7624cmac_512 = UaOid.Branch("1.1.3.4.3");
  58. /** DSTU7624 in CBC mode with 128 bit block/key presentation */
  59. public static readonly DerObjectIdentifier dstu7624cbc_128 = UaOid.Branch("1.1.3.5.1");
  60. /** DSTU7624 in CBC mode with 256 bit block/key presentation */
  61. public static readonly DerObjectIdentifier dstu7624cbc_256 = UaOid.Branch("1.1.3.5.2");
  62. /** DSTU7624 in CBC mode with 512 bit block/key presentation */
  63. public static readonly DerObjectIdentifier dstu7624cbc_512 = UaOid.Branch("1.1.3.5.3");
  64. /** DSTU7624 in OFB mode with 128 bit block/key presentation */
  65. public static readonly DerObjectIdentifier dstu7624ofb_128 = UaOid.Branch("1.1.3.6.1");
  66. /** DSTU7624 in OFB mode with 256 bit block/key presentation */
  67. public static readonly DerObjectIdentifier dstu7624ofb_256 = UaOid.Branch("1.1.3.6.2");
  68. /** DSTU7624 in OFB mode with 512 bit block/key presentation */
  69. public static readonly DerObjectIdentifier dstu7624ofb_512 = UaOid.Branch("1.1.3.6.3");
  70. /** DSTU7624 in GMAC (GCM witout encryption) mode with 128 bit block/key presentation */
  71. public static readonly DerObjectIdentifier dstu7624gmac_128 = UaOid.Branch("1.1.3.7.1");
  72. /** DSTU7624 in GMAC (GCM witout encryption) mode with 256 bit block/key presentation */
  73. public static readonly DerObjectIdentifier dstu7624gmac_256 = UaOid.Branch("1.1.3.7.2");
  74. /** DSTU7624 in GMAC (GCM witout encryption) mode with 512 bit block/key presentation */
  75. public static readonly DerObjectIdentifier dstu7624gmac_512 = UaOid.Branch("1.1.3.7.3");
  76. /** DSTU7624 in CCM mode with 128 bit block/key presentation */
  77. public static readonly DerObjectIdentifier dstu7624ccm_128 = UaOid.Branch("1.1.3.8.1");
  78. /** DSTU7624 in CCM mode with 256 bit block/key presentation */
  79. public static readonly DerObjectIdentifier dstu7624ccm_256 = UaOid.Branch("1.1.3.8.2");
  80. /** DSTU7624 in CCM mode with 512 bit block/key presentation */
  81. public static readonly DerObjectIdentifier dstu7624ccm_512 = UaOid.Branch("1.1.3.8.3");
  82. /** DSTU7624 in XTS mode with 128 bit block/key presentation */
  83. public static readonly DerObjectIdentifier dstu7624xts_128 = UaOid.Branch("1.1.3.9.1");
  84. /** DSTU7624 in XTS mode with 256 bit block/key presentation */
  85. public static readonly DerObjectIdentifier dstu7624xts_256 = UaOid.Branch("1.1.3.9.2");
  86. /** DSTU7624 in XTS mode with 512 bit block/key presentation */
  87. public static readonly DerObjectIdentifier dstu7624xts_512 = UaOid.Branch("1.1.3.9.3");
  88. /** DSTU7624 in key wrap (KW) mode with 128 bit block/key presentation */
  89. public static readonly DerObjectIdentifier dstu7624kw_128 = UaOid.Branch("1.1.3.10.1");
  90. /** DSTU7624 in key wrap (KW) mode with 256 bit block/key presentation */
  91. public static readonly DerObjectIdentifier dstu7624kw_256 = UaOid.Branch("1.1.3.10.2");
  92. /** DSTU7624 in key wrap (KW) mode with 512 bit block/key presentation */
  93. public static readonly DerObjectIdentifier dstu7624kw_512 = UaOid.Branch("1.1.3.10.3");
  94. }
  95. }
  96. #pragma warning restore
  97. #endif