Skip to content

Commit 88124bc

Browse files
authored
Merge pull request ibmruntimes#795 from KostasTsiounis/remove_copyrights
Remove unnecessary changes to EC key implementations
2 parents 6a0e7b9 + cb24e76 commit 88124bc

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

src/java.base/share/classes/sun/security/ec/ECPrivateKeyImpl.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@
2323
* questions.
2424
*/
2525

26-
/*
27-
* ===========================================================================
28-
* (c) Copyright IBM Corp. 2022, 2024 All Rights Reserved
29-
* ===========================================================================
30-
*/
31-
3226
package sun.security.ec;
3327

3428
import java.io.IOException;
@@ -41,8 +35,6 @@
4135
import java.security.spec.*;
4236
import java.util.Arrays;
4337

44-
import jdk.crypto.jniprovider.NativeCrypto;
45-
4638
import sun.security.ec.point.AffinePoint;
4739
import sun.security.ec.point.MutablePoint;
4840
import sun.security.util.*;
@@ -76,7 +68,6 @@ public final class ECPrivateKeyImpl extends PKCS8Key implements ECPrivateKey {
7668

7769
@java.io.Serial
7870
private static final long serialVersionUID = 88695385615075129L;
79-
private static NativeCrypto nativeCrypto;
8071

8172
private BigInteger s; // private value
8273
private byte[] arrayS; // private value as a little-endian array

src/java.base/share/classes/sun/security/ec/ECPublicKeyImpl.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,16 @@
2323
* questions.
2424
*/
2525

26-
/*
27-
* ===========================================================================
28-
* (c) Copyright IBM Corp. 2022, 2024 All Rights Reserved
29-
* ===========================================================================
30-
*/
31-
3226
package sun.security.ec;
3327

3428
import java.io.IOException;
35-
import java.math.BigInteger;
3629

3730
import java.io.InvalidObjectException;
3831
import java.io.ObjectInputStream;
3932
import java.security.*;
4033
import java.security.interfaces.*;
4134
import java.security.spec.*;
4235

43-
import jdk.crypto.jniprovider.NativeCrypto;
44-
4536
import sun.security.util.BitArray;
4637
import sun.security.util.ECParameters;
4738
import sun.security.util.ECUtil;
@@ -58,7 +49,6 @@ public final class ECPublicKeyImpl extends X509Key implements ECPublicKey {
5849

5950
@java.io.Serial
6051
private static final long serialVersionUID = -2462037275160462289L;
61-
private static NativeCrypto nativeCrypto;
6252

6353
@SuppressWarnings("serial") // Type of field is not
6454
// Serializable;see writeReplace
@@ -152,4 +142,4 @@ private void readObject(ObjectInputStream stream)
152142
throw new InvalidObjectException(
153143
"ECPublicKeyImpl keys are not directly deserializable");
154144
}
155-
}
145+
}

0 commit comments

Comments
 (0)