Skip to content

Commit

Permalink
Final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KostasTsiounis committed May 13, 2024
1 parent 02a9aef commit 4e49aae
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2022, 2023 All Rights Reserved
* (c) Copyright IBM Corp. 2022, 2024 All Rights Reserved
* ===========================================================================
*/

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 4e49aae

Please sign in to comment.