KeyExchangeAlgorithm.cs 1.6 KB

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