summary refs log tree commit diff
path: root/crypto/src/tls/EncryptionAlgorithm.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/tls/EncryptionAlgorithm.cs')
-rw-r--r--crypto/src/tls/EncryptionAlgorithm.cs82
1 files changed, 82 insertions, 0 deletions
diff --git a/crypto/src/tls/EncryptionAlgorithm.cs b/crypto/src/tls/EncryptionAlgorithm.cs
new file mode 100644
index 000000000..8064451ab
--- /dev/null
+++ b/crypto/src/tls/EncryptionAlgorithm.cs
@@ -0,0 +1,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;
+    }
+}