MacAlgorithm.cs 854 B

1234567891011121314151617181920212223242526272829
  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 MacAlgorithm
  12. {
  13. public const int cls_null = 0;
  14. public const int md5 = 1;
  15. public const int sha = 2;
  16. /*
  17. * RFC 5246
  18. */
  19. public const int hmac_md5 = md5;
  20. public const int hmac_sha1 = sha;
  21. public const int hmac_sha256 = 3;
  22. public const int hmac_sha384 = 4;
  23. public const int hmac_sha512 = 5;
  24. }
  25. }
  26. #pragma warning restore
  27. #endif