diff --git a/src/java.base/share/classes/javax/crypto/KeyAgreement.java b/src/java.base/share/classes/javax/crypto/KeyAgreement.java index 44e935f08e7dc..d82c0d53459be 100644 --- a/src/java.base/share/classes/javax/crypto/KeyAgreement.java +++ b/src/java.base/share/classes/javax/crypto/KeyAgreement.java @@ -678,7 +678,7 @@ public final int generateSecret(byte[] sharedSecret, int offset) * initialized or if {@code doPhase} has not been called to supply the * keys for all parties in the agreement * @exception NoSuchAlgorithmException if the specified secret-key - * algorithm is not available + * algorithm is not supported * @exception InvalidKeyException if the shared secret-key material cannot * be used to generate a secret key of the specified algorithm (e.g., * the key material is too short) diff --git a/src/java.base/share/classes/javax/crypto/KeyAgreementSpi.java b/src/java.base/share/classes/javax/crypto/KeyAgreementSpi.java index 5bad5bfa49005..f0b908c3797b9 100644 --- a/src/java.base/share/classes/javax/crypto/KeyAgreementSpi.java +++ b/src/java.base/share/classes/javax/crypto/KeyAgreementSpi.java @@ -224,7 +224,7 @@ protected abstract int engineGenerateSecret(byte[] sharedSecret, * initialized or if {@code doPhase} has not been called to supply the * keys for all parties in the agreement * @exception NoSuchAlgorithmException if the specified secret-key - * algorithm is not available + * algorithm is not supported * @exception InvalidKeyException if the shared secret key material cannot * be used to generate a secret key of the requested algorithm type (e.g., * the key material is too short)