PrfAlgorithm.cs 768 B

12345678910111213141516171819202122232425262728
  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 5246</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 PrfAlgorithm
  12. {
  13. /*
  14. * Placeholder to refer to the legacy TLS algorithm
  15. */
  16. public const int tls_prf_legacy = 0;
  17. public const int tls_prf_sha256 = 1;
  18. /*
  19. * Implied by RFC 5288
  20. */
  21. public const int tls_prf_sha384 = 2;
  22. }
  23. }
  24. #pragma warning restore
  25. #endif