EncryptionAlgorithm.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tls
  5. {
  6. /// <summary>RFC 2246</summary>
  7. /// <remarks>
  8. /// Note that the values here are implementation-specific and arbitrary. It is recommended not to depend on the
  9. /// particular values (e.g. serialization).
  10. /// </remarks>
  11. public abstract class EncryptionAlgorithm
  12. {
  13. public const int NULL = 0;
  14. public const int RC4_40 = 1;
  15. public const int RC4_128 = 2;
  16. public const int RC2_CBC_40 = 3;
  17. public const int IDEA_CBC = 4;
  18. public const int DES40_CBC = 5;
  19. public const int DES_CBC = 6;
  20. public const int cls_3DES_EDE_CBC = 7;
  21. /*
  22. * RFC 3268
  23. */
  24. public const int AES_128_CBC = 8;
  25. public const int AES_256_CBC = 9;
  26. /*
  27. * RFC 5289
  28. */
  29. public const int AES_128_GCM = 10;
  30. public const int AES_256_GCM = 11;
  31. /*
  32. * RFC 5932
  33. */
  34. public const int CAMELLIA_128_CBC = 12;
  35. public const int CAMELLIA_256_CBC = 13;
  36. /*
  37. * RFC 4162
  38. */
  39. public const int SEED_CBC = 14;
  40. /*
  41. * RFC 6655
  42. */
  43. public const int AES_128_CCM = 15;
  44. public const int AES_128_CCM_8 = 16;
  45. public const int AES_256_CCM = 17;
  46. public const int AES_256_CCM_8 = 18;
  47. /*
  48. * RFC 6367
  49. */
  50. public const int CAMELLIA_128_GCM = 19;
  51. public const int CAMELLIA_256_GCM = 20;
  52. /*
  53. * RFC 7905
  54. */
  55. public const int CHACHA20_POLY1305 = 21;
  56. /*
  57. * RFC 6209
  58. */
  59. public const int ARIA_128_CBC = 22;
  60. public const int ARIA_256_CBC = 23;
  61. public const int ARIA_128_GCM = 24;
  62. public const int ARIA_256_GCM = 25;
  63. /*
  64. * RFC 8998
  65. */
  66. public const int SM4_CCM = 26;
  67. public const int SM4_GCM = 27;
  68. /*
  69. * GMT 0024-2014
  70. */
  71. public const int SM4_CBC = 28;
  72. }
  73. }
  74. #pragma warning restore
  75. #endif