Skip to content

Commit 20da394

Browse files
author
gefeili
committed
Merge branch 'main' into 1958-aead-parameters
2 parents afd619f + 223afea commit 20da394

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

tls/src/test/java/org/bouncycastle/jsse/provider/test/EdDSACredentialsTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

tls/src/test/java/org/bouncycastle/tls/crypto/test/TlsCryptoTest.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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

tls/src/test/java/org/bouncycastle/tls/test/AllTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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);

util/src/main/java/org/bouncycastle/oer/its/template/ieee1609dot2/IEEE1609dot2.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)