You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.1 KiB
86 lines
2.1 KiB
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) |
|
#pragma warning disable |
|
using System; |
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.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 EncryptionAlgorithm |
|
{ |
|
public const int NULL = 0; |
|
public const int RC4_40 = 1; |
|
public const int RC4_128 = 2; |
|
public const int RC2_CBC_40 = 3; |
|
public const int IDEA_CBC = 4; |
|
public const int DES40_CBC = 5; |
|
public const int DES_CBC = 6; |
|
public const int cls_3DES_EDE_CBC = 7; |
|
|
|
/* |
|
* RFC 3268 |
|
*/ |
|
public const int AES_128_CBC = 8; |
|
public const int AES_256_CBC = 9; |
|
|
|
/* |
|
* RFC 5289 |
|
*/ |
|
public const int AES_128_GCM = 10; |
|
public const int AES_256_GCM = 11; |
|
|
|
/* |
|
* RFC 5932 |
|
*/ |
|
public const int CAMELLIA_128_CBC = 12; |
|
public const int CAMELLIA_256_CBC = 13; |
|
|
|
/* |
|
* RFC 4162 |
|
*/ |
|
public const int SEED_CBC = 14; |
|
|
|
/* |
|
* RFC 6655 |
|
*/ |
|
public const int AES_128_CCM = 15; |
|
public const int AES_128_CCM_8 = 16; |
|
public const int AES_256_CCM = 17; |
|
public const int AES_256_CCM_8 = 18; |
|
|
|
/* |
|
* RFC 6367 |
|
*/ |
|
public const int CAMELLIA_128_GCM = 19; |
|
public const int CAMELLIA_256_GCM = 20; |
|
|
|
/* |
|
* RFC 7905 |
|
*/ |
|
public const int CHACHA20_POLY1305 = 21; |
|
|
|
/* |
|
* RFC 6209 |
|
*/ |
|
public const int ARIA_128_CBC = 22; |
|
public const int ARIA_256_CBC = 23; |
|
public const int ARIA_128_GCM = 24; |
|
public const int ARIA_256_GCM = 25; |
|
|
|
/* |
|
* RFC 8998 |
|
*/ |
|
public const int SM4_CCM = 26; |
|
public const int SM4_GCM = 27; |
|
|
|
/* |
|
* GMT 0024-2014 |
|
*/ |
|
public const int SM4_CBC = 28; |
|
} |
|
} |
|
#pragma warning restore |
|
#endif
|
|
|