Commit fb20690 Anthony Scarpino
committed Sep 29, 2020
1 parent b1ce6bd commit fb20690 Copy full SHA for fb20690
File tree 4 files changed +6
-5
lines changed
src/jdk.crypto.ec/share/classes/sun/security/ec
4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -170,9 +170,10 @@ protected byte[] engineGenerateSecret() throws IllegalStateException {
170
170
byte [] result ;
171
171
Optional <byte []> resultOpt = deriveKeyImpl (privateKey , publicKey );
172
172
if (resultOpt .isEmpty ()) {
173
+ NamedCurve nc = CurveDB .lookup (publicKey .getParams ());
173
174
throw new IllegalStateException (
174
175
new InvalidAlgorithmParameterException ("Curve not supported: " +
175
- publicKey . getParams () .toString ()));
176
+ ( nc != null ? nc .toString () : "unknown" )));
176
177
}
177
178
result = resultOpt .get ();
178
179
publicKey = null ;
Original file line number Diff line number Diff line change @@ -704,7 +704,6 @@ javax/security/auth/kerberos/KerberosTixDateTest.java 8039280 generic-
704
704
sun/security/provider/PolicyFile/GrantAllPermToExtWhenNoPolicy.java 8039280 generic-all
705
705
sun/security/provider/PolicyParser/ExtDirsChange.java 8039280 generic-all
706
706
sun/security/provider/PolicyParser/PrincipalExpansionError.java 8039280 generic-all
707
- sun/security/ec/TestEC.java 8253637 linux-aarch64
708
707
709
708
############################################################################
710
709
Original file line number Diff line number Diff line change 37
37
* @library ../../../java/security/testlibrary
38
38
* @library ../../../javax/net/ssl/TLSCommon
39
39
* @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
42
43
*/
43
44
44
45
import java .security .NoSuchProviderException ;
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public abstract class PKCS11Test {
96
96
// NSS version info
97
97
public static enum ECCState { None , Basic , Extended };
98
98
static double nss_version = -1 ;
99
- static ECCState nss_ecc_status = ECCState .Extended ;
99
+ static ECCState nss_ecc_status = ECCState .Basic ;
100
100
101
101
// The NSS library we need to search for in getNSSLibDir()
102
102
// Default is "libsoftokn3.so", listed as "softokn3"
You can’t perform that action at this time.
0 commit comments