PrfAlgorithm.cs 698 B

12345678910111213141516171819202122232425262728
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. namespace Org.BouncyCastle.Crypto.Tls
  4. {
  5. /// <summary>RFC 5246</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 PrfAlgorithm
  11. {
  12. /*
  13. * Placeholder to refer to the legacy TLS algorithm
  14. */
  15. public const int tls_prf_legacy = 0;
  16. public const int tls_prf_sha256 = 1;
  17. /*
  18. * Implied by RFC 5288
  19. */
  20. public const int tls_prf_sha384 = 2;
  21. }
  22. }
  23. #endif