Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.util.*;
import java.util.concurrent.locks.ReentrantLock;
import javax.net.ssl.*;
import jdk.internal.access.SharedSecrets;
import sun.security.action.GetPropertyAction;
import sun.security.provider.certpath.AlgorithmChecker;
import sun.security.validator.Validator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ final class FIPSKeyImporter {
private static volatile Provider sunECProvider = null;
private static final ReentrantLock sunECProviderLock = new ReentrantLock();

private static volatile KeyFactory DHKF = null;
private static final ReentrantLock DHKFLock = new ReentrantLock();

static Long importKey(SunPKCS11 sunPKCS11, long hSession, CK_ATTRIBUTE[] attributes)
throws PKCS11Exception {
long keyID = -1;
Expand Down Expand Up @@ -319,8 +316,7 @@ private static void exportPrivateKey(
CKA_PRIVATE_EXPONENT, CKA_PRIME_1, CKA_PRIME_2,
CKA_EXPONENT_1, CKA_EXPONENT_2, CKA_COEFFICIENT);
RSAPrivateKey rsaPKey = RSAPrivateCrtKeyImpl.newKey(
RSAUtil.KeyType.RSA, "PKCS#8", plainExportedKey
);
RSAUtil.KeyType.RSA, "PKCS#8", plainExportedKey);
CK_ATTRIBUTE attr;
if ((attr = sensitiveAttrs.get(CKA_PRIVATE_EXPONENT)) != null) {
attr.pValue = rsaPKey.getPrivateExponent().toByteArray();
Expand Down