KeyExchangeAlgorithm.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.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
  9. /// depend on the particular values (e.g. serialization).
  10. /// </remarks>
  11. public abstract class KeyExchangeAlgorithm
  12. {
  13. public const int NULL = 0;
  14. public const int RSA = 1;
  15. public const int RSA_EXPORT = 2;
  16. public const int DHE_DSS = 3;
  17. public const int DHE_DSS_EXPORT = 4;
  18. public const int DHE_RSA = 5;
  19. public const int DHE_RSA_EXPORT = 6;
  20. public const int DH_DSS = 7;
  21. public const int DH_DSS_EXPORT = 8;
  22. public const int DH_RSA = 9;
  23. public const int DH_RSA_EXPORT = 10;
  24. public const int DH_anon = 11;
  25. public const int DH_anon_EXPORT = 12;
  26. /*
  27. * RFC 4279
  28. */
  29. public const int PSK = 13;
  30. public const int DHE_PSK = 14;
  31. public const int RSA_PSK = 15;
  32. /*
  33. * RFC 4429
  34. */
  35. public const int ECDH_ECDSA = 16;
  36. public const int ECDHE_ECDSA = 17;
  37. public const int ECDH_RSA = 18;
  38. public const int ECDHE_RSA = 19;
  39. public const int ECDH_anon = 20;
  40. /*
  41. * RFC 5054
  42. */
  43. public const int SRP = 21;
  44. public const int SRP_DSS = 22;
  45. public const int SRP_RSA = 23;
  46. /*
  47. * RFC 5489
  48. */
  49. public const int ECDHE_PSK = 24;
  50. }
  51. }
  52. #pragma warning restore
  53. #endif