8182999: SunEC throws ProviderException on invalid curves

Reviewed-by: vinnie
This commit is contained in:
Adam Petcher 2017-07-13 12:24:55 +01:00
parent 15b3cd2e1a
commit 6a25b00347
5 changed files with 154 additions and 8 deletions

View file

@ -130,7 +130,7 @@ public class ECUtil {
return (ECPrivateKey)keyFactory.generatePrivate(keySpec);
}
private static AlgorithmParameters getECParameters(Provider p) {
public static AlgorithmParameters getECParameters(Provider p) {
try {
if (p != null) {
return AlgorithmParameters.getInstance("EC", p);