Skip to content

Commit fb20690

Browse files
author
Anthony Scarpino
committedSep 29, 2020
8253637: Update EC removal
Reviewed-by: mullan
1 parent b1ce6bd commit fb20690

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed
 

‎src/jdk.crypto.ec/share/classes/sun/security/ec/ECDHKeyAgreement.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,10 @@ protected byte[] engineGenerateSecret() throws IllegalStateException {
170170
byte[] result;
171171
Optional<byte[]> resultOpt = deriveKeyImpl(privateKey, publicKey);
172172
if (resultOpt.isEmpty()) {
173+
NamedCurve nc = CurveDB.lookup(publicKey.getParams());
173174
throw new IllegalStateException(
174175
new InvalidAlgorithmParameterException("Curve not supported: " +
175-
publicKey.getParams().toString()));
176+
(nc != null ? nc.toString() : "unknown")));
176177
}
177178
result = resultOpt.get();
178179
publicKey = null;

‎test/jdk/ProblemList.txt

-1
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,6 @@ javax/security/auth/kerberos/KerberosTixDateTest.java 8039280 generic-
704704
sun/security/provider/PolicyFile/GrantAllPermToExtWhenNoPolicy.java 8039280 generic-all
705705
sun/security/provider/PolicyParser/ExtDirsChange.java 8039280 generic-all
706706
sun/security/provider/PolicyParser/PrincipalExpansionError.java 8039280 generic-all
707-
sun/security/ec/TestEC.java 8253637 linux-aarch64
708707

709708
############################################################################
710709

‎test/jdk/sun/security/ec/TestEC.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
* @library ../../../java/security/testlibrary
3838
* @library ../../../javax/net/ssl/TLSCommon
3939
* @modules jdk.crypto.cryptoki/sun.security.pkcs11.wrapper
40-
* @run main/othervm -Djdk.tls.namedGroups="secp256r1,sect193r1" -Djdk.sunec.disableNative=false TestEC
41-
* @run main/othervm -Djava.security.policy=TestEC.policy -Djdk.tls.namedGroups="secp256r1,sect193r1" -Djdk.sunec.disableNative=false TestEC
40+
* @run main/othervm -Djdk.tls.namedGroups="secp256r1" TestEC
41+
* @run main/othervm -Djava.security.policy=TestEC.policy
42+
* -Djdk.tls.namedGroups="secp256r1" TestEC
4243
*/
4344

4445
import java.security.NoSuchProviderException;

‎test/jdk/sun/security/pkcs11/PKCS11Test.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public abstract class PKCS11Test {
9696
// NSS version info
9797
public static enum ECCState { None, Basic, Extended };
9898
static double nss_version = -1;
99-
static ECCState nss_ecc_status = ECCState.Extended;
99+
static ECCState nss_ecc_status = ECCState.Basic;
100100

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

0 commit comments

Comments
 (0)
Please sign in to comment.