8253637: Update EC removal
Reviewed-by: mullan
This commit is contained in:
parent
b1ce6bdba9
commit
fb206908b4
@ -170,9 +170,10 @@ public final class ECDHKeyAgreement extends KeyAgreementSpi {
|
||||
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;
|
||||
|
@ -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
|
||||
|
||||
############################################################################
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user