File tree Expand file tree Collapse file tree 4 files changed +17
-6
lines changed
tls/src/test/java/org/bouncycastle
util/src/main/java/org/bouncycastle/oer/its/template/ieee1609dot2 Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ protected void setUp()
2828 }
2929
3030 private static final String HOST = "localhost" ;
31- private static final int PORT_NO_12_ED25519 = 9020 ;
32- private static final int PORT_NO_12_ED448 = 9021 ;
33- private static final int PORT_NO_13_ED25519 = 9022 ;
34- private static final int PORT_NO_13_ED448 = 9023 ;
31+ private static final int PORT_NO_12_ED25519 = 9050 ;
32+ private static final int PORT_NO_12_ED448 = 9051 ;
33+ private static final int PORT_NO_13_ED25519 = 9052 ;
34+ private static final int PORT_NO_13_ED448 = 9053 ;
3535
3636 static class EdDSAClient
3737 implements TestProtocolUtil .BlockingCallable
Original file line number Diff line number Diff line change @@ -221,6 +221,14 @@ public void testDHDomain() throws Exception
221221 implTestDHDomain (new TlsDHConfig (namedGroup , false ));
222222 implTestDHDomain (new TlsDHConfig (namedGroup , true ));
223223 }
224+ }
225+
226+ public void testDHExplicit () throws Exception
227+ {
228+ if (!crypto .hasDHAgreement ())
229+ {
230+ return ;
231+ }
224232
225233 new DefaultTlsDHGroupVerifier ()
226234 {{
@@ -236,9 +244,10 @@ public void testDHDomain() throws Exception
236244 assertSame (dhGroup , TlsDHUtils .getStandardGroupForDHParameters (p , g ));
237245
238246 int namedGroup = TlsDHUtils .getNamedGroupForDHParameters (p , g );
247+
248+ // Named groups tested elsewhere
239249 if (NamedGroup .refersToASpecificFiniteField (namedGroup ))
240250 {
241- // Already tested the named groups
242251 continue ;
243252 }
244253
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ public static Test suite()
3131 suite .addTestSuite (OCSPTest .class );
3232 suite .addTestSuite (PRFTest .class );
3333 suite .addTestSuite (Tls13PSKProtocolTest .class );
34+ suite .addTestSuite (TlsProtocolKemTest .class );
3435 suite .addTestSuite (TlsProtocolNonBlockingTest .class );
3536 suite .addTestSuite (TlsProtocolTest .class );
3637 suite .addTestSuite (TlsPSKProtocolTest .class );
Original file line number Diff line number Diff line change @@ -259,7 +259,8 @@ public Element result(SwitchIndexer indexer)
259259 * EndEntityType ::= BIT STRING {app (0), enrol (1) } (SIZE (8))
260260 */
261261 public static final OERDefinition .Builder EndEntityType =
262- OERDefinition .bitString (8 ).defaultValue (new DERBitString (new byte []{0 }, 0 ))
262+ OERDefinition .bitString (8 )
263+ .defaultValue (new DERBitString (org .bouncycastle .oer .its .ieee1609dot2 .EndEntityType .app ))
263264 .typeName ("EndEntityType" );
264265
265266 /**
You can’t perform that action at this time.
0 commit comments