Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional checks to NativeECDHKeyAgreement to match upstream #788

Merged
merged 1 commit into from
May 14, 2024

Conversation

KostasTsiounis
Copy link
Contributor

@KostasTsiounis KostasTsiounis commented May 13, 2024

There are additional checks that are required during the init and doPhase parts of ECDH key agreement. Those checks are already present in the original ECDHKeyAgreement class, so they had to be added to the NativeECDHKeyAgreement class as well.

Both the private and public key are, also, set to null at the beginning of the initialization, regardless of the method's outcome, meaning that in case of failure the previous keys cannot be used. This is new in JDK23.

Fixes: eclipse-openj9/openj9#19437

Signed-off by: Kostas Tsiounis kostas.tsiounis@ibm.com

@keithc-ca
Copy link
Member

Jenkins test sanity zlinux jdknext

@keithc-ca
Copy link
Member

keithc-ca commented May 14, 2024

The two test failures (java.security.manager) in a grinder seem unrelated to this change.

@pshipton
Copy link
Member

@keithc-ca pls see the backports

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.

ECDHKeyAgreementParamValidation fails in jdk23
3 participants