Skip to content

Commit 2ae8e31

Browse files
longxu0509John Jiang
authored andcommitted
8290669: Fix wording in sun.security.ec
Reviewed-by: mullan
1 parent 8939095 commit 2ae8e31

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/jdk.crypto.ec/share/classes/sun/security/ec/ECOperations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ byte[] seedToScalar(byte[] seedBytes)
151151
// and throw IntermediateValueException in the (unlikely) event
152152
// that the result is 0.
153153

154-
// Get 64 extra bits and reduce in to the nonce
154+
// Get 64 extra bits and reduce into the nonce
155155
int seedBits = orderField.getSize().bitLength() + 64;
156156
if (seedBytes.length * 8 < seedBits) {
157157
throw new ProviderException("Incorrect seed length: " +

src/jdk.crypto.ec/share/classes/sun/security/ec/XECOperations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private static byte maskHighOrder(byte[] arr, int bits) {
145145

146146
/**
147147
* Prune an encoded scalar value by modifying it in place. The extra
148-
* high-order bits are masked off, the highest valid bit it set, and the
148+
* high-order bits are masked off, the highest valid bit is set, and the
149149
* number is rounded down to a multiple of the cofactor.
150150
*
151151
* @param k an encoded scalar value

src/jdk.crypto.ec/share/classes/sun/security/ec/ed/EdDSAKeyPairGenerator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
package sun.security.ec.ed;
2727

28-
//import java.security.*;
2928
import java.security.InvalidAlgorithmParameterException;
3029
import java.security.InvalidKeyException;
3130
import java.security.InvalidParameterException;

0 commit comments

Comments
 (0)