8290669: Fix wording in sun.security.ec

Reviewed-by: mullan
This commit is contained in:
longxu0509 2022-07-26 15:04:49 +00:00 committed by John Jiang
parent 893909558b
commit 2ae8e31183
3 changed files with 2 additions and 3 deletions
src/jdk.crypto.ec/share/classes/sun/security/ec

@ -151,7 +151,7 @@ public class ECOperations {
// and throw IntermediateValueException in the (unlikely) event
// that the result is 0.
// Get 64 extra bits and reduce in to the nonce
// Get 64 extra bits and reduce into the nonce
int seedBits = orderField.getSize().bitLength() + 64;
if (seedBytes.length * 8 < seedBits) {
throw new ProviderException("Incorrect seed length: " +

@ -145,7 +145,7 @@ public class XECOperations {
/**
* Prune an encoded scalar value by modifying it in place. The extra
* high-order bits are masked off, the highest valid bit it set, and the
* high-order bits are masked off, the highest valid bit is set, and the
* number is rounded down to a multiple of the cofactor.
*
* @param k an encoded scalar value

@ -25,7 +25,6 @@
package sun.security.ec.ed;
//import java.security.*;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.InvalidParameterException;