diff options
-rw-r--r-- | crypto/test/src/tls/crypto/test/BcTlsCryptoTest.cs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/crypto/test/src/tls/crypto/test/BcTlsCryptoTest.cs b/crypto/test/src/tls/crypto/test/BcTlsCryptoTest.cs index 75a3d1e00..60f88bd05 100644 --- a/crypto/test/src/tls/crypto/test/BcTlsCryptoTest.cs +++ b/crypto/test/src/tls/crypto/test/BcTlsCryptoTest.cs @@ -169,16 +169,12 @@ namespace Org.BouncyCastle.Tls.Crypto.Tests public void TestDHDomain() { if (!m_crypto.HasDHAgreement()) - { return; - } for (int namedGroup = 256; namedGroup < 512; ++namedGroup) { if (!NamedGroup.RefersToASpecificFiniteField(namedGroup) || !m_crypto.HasNamedGroup(namedGroup)) - { continue; - } ImplTestDHDomain(new TlsDHConfig(namedGroup, false)); ImplTestDHDomain(new TlsDHConfig(namedGroup, true)); @@ -188,11 +184,10 @@ namespace Org.BouncyCastle.Tls.Crypto.Tests foreach (DHGroup dhGroup in groups) { int namedGroup = TlsDHUtilities.GetNamedGroupForDHParameters(dhGroup.P, dhGroup.G); + + // Already tested the named groups if (NamedGroup.RefersToASpecificFiniteField(namedGroup)) - { - // Already tested the named groups continue; - } ImplTestDHDomain(new TlsDHConfig(dhGroup)); } @@ -202,16 +197,12 @@ namespace Org.BouncyCastle.Tls.Crypto.Tests public void TestECDomain() { if (!m_crypto.HasECDHAgreement()) - { return; - } for (int namedGroup = 0; namedGroup < 256; ++namedGroup) { if (!NamedGroup.RefersToAnECDHCurve(namedGroup) || !m_crypto.HasNamedGroup(namedGroup)) - { continue; - } ImplTestECDomain(new TlsECConfig(namedGroup)); } |