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.
There are additional checks that are required during the
init
anddoPhase
parts ofECDH
key agreement. Those checks are already present in the originalECDHKeyAgreement
class, so they had to be added to theNativeECDHKeyAgreement
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: https://github.com/eclipse-openj9/openj9/issues/19437
Signed-off by: Kostas Tsiounis kostas.tsiounis@ibm.com