blob: 8064451ab49561cc4d38bcfe5c9c800a96d34a6f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
using System;
namespace 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;
}
}
|