-
Type:
Bug
-
Status: Resolved
-
Priority:
P4
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: security-libs
-
Labels:
-
Subcomponent:
If the public or private key has has points that are not on the curve, ECDHKeyAgreement.generateSecret() will throw a ProviderException.
It should be a InvalidKeyException, which is a subclass of the GeneralSecurityException.
The KeyAgreement.generateSecret() spec says IllegalStateException are to be thrown. The EC method does not wrap previous exception.
It should be a InvalidKeyException, which is a subclass of the GeneralSecurityException.
The KeyAgreement.generateSecret() spec says IllegalStateException are to be thrown. The EC method does not wrap previous exception.
- duplicates
-
JDK-8261502 ECDHKeyAgreement: Allows alternate ECPrivateKey impl and revised exception handling
-
- In Progress
-