mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8182999: SunEC throws ProviderException on invalid curves
Reviewed-by: vinnie
This commit is contained in:
parent
15b3cd2e1a
commit
6a25b00347
5 changed files with 154 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue