summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-08-13 12:09:29 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-08-13 12:09:29 +0700
commit87a591bab3f66d305e3f9e1108bd7c57f3301a7a (patch)
tree2d59a3ad0bf0ea4fa8f9454473f2b0eb5cce6fcb
parentAdd FFDHE groups from RFC 7919 (diff)
downloadBouncyCastle.NET-ed25519-87a591bab3f66d305e3f9e1108bd7c57f3301a7a.tar.xz
Use ffdhe2048 from RFC 7919 as TLS default DH group
-rw-r--r--crypto/src/crypto/tls/DefaultTlsServer.cs2
-rw-r--r--crypto/src/crypto/tls/PskTlsServer.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/crypto/tls/DefaultTlsServer.cs b/crypto/src/crypto/tls/DefaultTlsServer.cs
index 8b9a7c9a0..97eaa079d 100644
--- a/crypto/src/crypto/tls/DefaultTlsServer.cs
+++ b/crypto/src/crypto/tls/DefaultTlsServer.cs
@@ -42,7 +42,7 @@ namespace Org.BouncyCastle.Crypto.Tls
 
         protected virtual DHParameters GetDHParameters()
         {
-            return DHStandardGroups.rfc3526_2048;
+            return DHStandardGroups.rfc7919_ffdhe2048;
         }
 
         protected override int[] GetCipherSuites()
diff --git a/crypto/src/crypto/tls/PskTlsServer.cs b/crypto/src/crypto/tls/PskTlsServer.cs
index d6f54db1f..b0fb67c04 100644
--- a/crypto/src/crypto/tls/PskTlsServer.cs
+++ b/crypto/src/crypto/tls/PskTlsServer.cs
@@ -28,7 +28,7 @@ namespace Org.BouncyCastle.Crypto.Tls
 
         protected virtual DHParameters GetDHParameters()
         {
-            return DHStandardGroups.rfc3526_2048;
+            return DHStandardGroups.rfc7919_ffdhe2048;
         }
 
         protected override int[] GetCipherSuites()