diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-08-07 18:38:54 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-08-07 18:38:54 +0700 |
commit | 16f4a0e947b39d8b2ffe71f0d7a7f3c1c8a12a43 (patch) | |
tree | af68533e45f8c5ec5b2d1e5b64b4bf1484916ad7 | |
parent | Allow IOException from NotifySelectedPsk (diff) | |
download | BouncyCastle.NET-ed25519-16f4a0e947b39d8b2ffe71f0d7a7f3c1c8a12a43.tar.xz |
Cleanup
-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)); } |