From 4e49aae8f999db99f34845f7069b3880c055ca04 Mon Sep 17 00:00:00 2001 From: Kostas Tsiounis Date: Mon, 13 May 2024 10:23:16 -0400 Subject: [PATCH] Final fixes --- .../classes/sun/security/ec/NativeECDHKeyAgreement.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/closed/src/java.base/share/classes/sun/security/ec/NativeECDHKeyAgreement.java b/closed/src/java.base/share/classes/sun/security/ec/NativeECDHKeyAgreement.java index 396bd261508..39c71bd1201 100644 --- a/closed/src/java.base/share/classes/sun/security/ec/NativeECDHKeyAgreement.java +++ b/closed/src/java.base/share/classes/sun/security/ec/NativeECDHKeyAgreement.java @@ -25,7 +25,7 @@ /* * =========================================================================== - * (c) Copyright IBM Corp. 2022, 2023 All Rights Reserved + * (c) Copyright IBM Corp. 2022, 2024 All Rights Reserved * =========================================================================== */ @@ -98,7 +98,6 @@ public final class NativeECDHKeyAgreement extends KeyAgreementSpi { public NativeECDHKeyAgreement() { } - // Generic init private void init(Key key) throws InvalidKeyException, InvalidAlgorithmParameterException { this.privateKey = null; @@ -185,7 +184,7 @@ protected Key engineDoPhase(Key key, boolean lastPhase) ("Key must be an instance of PublicKey"); } - // Validate public key + // Validate public key. validate(privateKeyOps, (ECPublicKey) key); if (key instanceof ECPublicKeyImpl keyImpl) {