MacAlgorithm.cs 784 B

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