Skip to content

Commit

Permalink
8253637: Update EC removal
Browse files Browse the repository at this point in the history
Reviewed-by: mullan
  • Loading branch information
Anthony Scarpino committed Sep 29, 2020
1 parent b1ce6bd commit fb20690
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Expand Up @@ -170,9 +170,10 @@ protected byte[] engineGenerateSecret() throws IllegalStateException {
byte[] result;
Optional<byte[]> resultOpt = deriveKeyImpl(privateKey, publicKey);
if (resultOpt.isEmpty()) {
NamedCurve nc = CurveDB.lookup(publicKey.getParams());
throw new IllegalStateException(
new InvalidAlgorithmParameterException("Curve not supported: " +
publicKey.getParams().toString()));
(nc != null ? nc.toString() : "unknown")));
}
result = resultOpt.get();
publicKey = null;
Expand Down
1 change: 0 additions & 1 deletion test/jdk/ProblemList.txt
Expand Up @@ -704,7 +704,6 @@ javax/security/auth/kerberos/KerberosTixDateTest.java 8039280 generic-
sun/security/provider/PolicyFile/GrantAllPermToExtWhenNoPolicy.java 8039280 generic-all
sun/security/provider/PolicyParser/ExtDirsChange.java 8039280 generic-all
sun/security/provider/PolicyParser/PrincipalExpansionError.java 8039280 generic-all
sun/security/ec/TestEC.java 8253637 linux-aarch64

############################################################################

Expand Down
5 changes: 3 additions & 2 deletions test/jdk/sun/security/ec/TestEC.java
Expand Up @@ -37,8 +37,9 @@
* @library ../../../java/security/testlibrary
* @library ../../../javax/net/ssl/TLSCommon
* @modules jdk.crypto.cryptoki/sun.security.pkcs11.wrapper
* @run main/othervm -Djdk.tls.namedGroups="secp256r1,sect193r1" -Djdk.sunec.disableNative=false TestEC
* @run main/othervm -Djava.security.policy=TestEC.policy -Djdk.tls.namedGroups="secp256r1,sect193r1" -Djdk.sunec.disableNative=false TestEC
* @run main/othervm -Djdk.tls.namedGroups="secp256r1" TestEC
* @run main/othervm -Djava.security.policy=TestEC.policy
* -Djdk.tls.namedGroups="secp256r1" TestEC
*/

import java.security.NoSuchProviderException;
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/sun/security/pkcs11/PKCS11Test.java
Expand Up @@ -96,7 +96,7 @@ public abstract class PKCS11Test {
// NSS version info
public static enum ECCState { None, Basic, Extended };
static double nss_version = -1;
static ECCState nss_ecc_status = ECCState.Extended;
static ECCState nss_ecc_status = ECCState.Basic;

// The NSS library we need to search for in getNSSLibDir()
// Default is "libsoftokn3.so", listed as "softokn3"
Expand Down

1 comment on commit fb20690

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on fb20690 Sep 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.