up
This commit is contained in:
29
Assets/BestHTTP/SecureProtocol/crypto/tls/MacAlgorithm.cs
Normal file
29
Assets/BestHTTP/SecureProtocol/crypto/tls/MacAlgorithm.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
|
||||
using System;
|
||||
|
||||
namespace Org.BouncyCastle.Crypto.Tls
|
||||
{
|
||||
/// <summary>RFC 2246</summary>
|
||||
/// <remarks>
|
||||
/// Note that the values here are implementation-specific and arbitrary. It is recommended not to
|
||||
/// depend on the particular values (e.g. serialization).
|
||||
/// </remarks>
|
||||
public abstract class MacAlgorithm
|
||||
{
|
||||
public const int cls_null = 0;
|
||||
public const int md5 = 1;
|
||||
public const int sha = 2;
|
||||
|
||||
/*
|
||||
* RFC 5246
|
||||
*/
|
||||
public const int hmac_md5 = md5;
|
||||
public const int hmac_sha1 = sha;
|
||||
public const int hmac_sha256 = 3;
|
||||
public const int hmac_sha384 = 4;
|
||||
public const int hmac_sha512 = 5;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user