summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2018-10-22 12:14:15 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2018-10-22 12:14:15 +0700
commitc687a6b6a0d2ae3af07c10aa3559744ff5fd42c9 (patch)
treeab1a0bf5c3aafac38ce19f736af65edd90ca7b7b /crypto/src
parentApply CCM nonce length check for encryption only (diff)
downloadBouncyCastle.NET-ed25519-c687a6b6a0d2ae3af07c10aa3559744ff5fd42c9.tar.xz
DH_anon cipher suites are considered ephemeral DH
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/crypto/tls/TlsDHUtilities.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/crypto/src/crypto/tls/TlsDHUtilities.cs b/crypto/src/crypto/tls/TlsDHUtilities.cs
index 9567ee062..ec5909f48 100644
--- a/crypto/src/crypto/tls/TlsDHUtilities.cs
+++ b/crypto/src/crypto/tls/TlsDHUtilities.cs
@@ -366,6 +366,25 @@ namespace Org.BouncyCastle.Crypto.Tls
             case CipherSuite.DRAFT_TLS_DHE_PSK_WITH_AES_128_OCB:
             case CipherSuite.DRAFT_TLS_DHE_PSK_WITH_AES_256_OCB:
 
+            /*
+             * DH_anon cipher suites are consider ephemeral DH 
+             */
+            case CipherSuite.TLS_DH_anon_WITH_3DES_EDE_CBC_SHA:
+            case CipherSuite.TLS_DH_anon_WITH_AES_128_CBC_SHA:
+            case CipherSuite.TLS_DH_anon_WITH_AES_128_CBC_SHA256:
+            case CipherSuite.TLS_DH_anon_WITH_AES_128_GCM_SHA256:
+            case CipherSuite.TLS_DH_anon_WITH_AES_256_CBC_SHA:
+            case CipherSuite.TLS_DH_anon_WITH_AES_256_CBC_SHA256:
+            case CipherSuite.TLS_DH_anon_WITH_AES_256_GCM_SHA384:
+            case CipherSuite.TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA:
+            case CipherSuite.TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256:
+            case CipherSuite.TLS_DH_anon_WITH_CAMELLIA_128_GCM_SHA256:
+            case CipherSuite.TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA:
+            case CipherSuite.TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256:
+            case CipherSuite.TLS_DH_anon_WITH_CAMELLIA_256_GCM_SHA384:
+            case CipherSuite.TLS_DH_anon_WITH_RC4_128_MD5:
+            case CipherSuite.TLS_DH_anon_WITH_SEED_CBC_SHA:
+
                 return true;
 
             default: