Skip to content

Update KeyAgreement classes to support Generic secret generation - #1753

Merged
jasonkatonica merged 1 commit into
IBM:java17from
JinhangZhang:openjceplus/backport/java17/genericsecretgeneration
Sep 9, 2026
Merged

Update KeyAgreement classes to support Generic secret generation#1753
jasonkatonica merged 1 commit into
IBM:java17from
JinhangZhang:openjceplus/backport/java17/genericsecretgeneration

Conversation

@JinhangZhang

Copy link
Copy Markdown
Collaborator

The engineGenerateSecret(String) method in KeyAgreement
classes currently only supports "TlsPremasterSecret",
but the expectation starting in Java 21 is that
"Generic" should be accepted as well. This change
accomplishes that.

Additional test cases to verify said behaviour are
added.

Back-ported from: #573

@jasonkatonica jasonkatonica left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@taoliult taoliult left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/test/java/ibm/jceplus/junit/base/BaseTestDH.java Outdated
Comment thread src/test/java/ibm/jceplus/junit/base/BaseTestECDH.java Outdated
Comment thread src/test/java/ibm/jceplus/junit/base/BaseTestXDH.java
Comment thread src/test/java/ibm/jceplus/junit/base/BaseTestXDH.java
The engineGenerateSecret(String) method in KeyAgreement
classes currently only supports "TlsPremasterSecret",
but the expectation starting in Java 25 is that
"Generic" should be accepted as well. This change
accomplishes that.

Additional test cases to verify said behaviour are
added.

Signed-off-by: Kostas Tsiounis <kostas.tsiounis@ibm.com>
@JinhangZhang
JinhangZhang force-pushed the openjceplus/backport/java17/genericsecretgeneration branch from 8383b7c to 22587e1 Compare September 3, 2026 20:30

@KostasTsiounis KostasTsiounis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jasonkatonica
jasonkatonica merged commit 549885d into IBM:java17 Sep 9, 2026
3 checks passed
jasonkatonica pushed a commit to ibmruntimes/OpenJCEPlus that referenced this pull request Sep 9, 2026
…#1753)

The engineGenerateSecret(String) method in KeyAgreement
classes currently only supports "TlsPremasterSecret",
but the expectation starting in Java 25 is that
"Generic" should be accepted as well. This change
accomplishes that.

Additional test cases to verify said behaviour are
added.

Signed-off-by: Kostas Tsiounis <kostas.tsiounis@ibm.com>
Co-authored-by: Kostas Tsiounis <kostas.tsiounis@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants