8290463: Fix several comment typos in sun.security.ec

Reviewed-by: xuelei
This commit is contained in:
Hollow Man 2022-07-19 01:49:20 +00:00 committed by Xue-Lei Andrew Fan
parent 6cd1c0c14e
commit af86cd3d8c
3 changed files with 4 additions and 4 deletions

View File

@ -176,7 +176,7 @@ public final class ECDHKeyAgreement extends KeyAgreementSpi {
// (point of infinity). However, the point of infinity has no
// affine coordinates, although the point of infinity could
// be encoded. Per IEEE 1363.3-2013 (see section A.6.4.1),
// the point of inifinity is represented by a pair of
// the point of infinity is represented by a pair of
// coordinates (x, y) not on the curve. For EC prime finite
// field (q = p^m), the point of infinity is (0, 0) unless
// b = 0; in which case it is (0, 1).

View File

@ -114,7 +114,7 @@ public class ECDSAOperations {
* @return the ECDSA signature value
* @throws IntermediateValueException if the signature cannot be produced
* due to an unacceptable intermediate or final value. If this
* exception is thrown, then the caller should discard the nonnce and
* exception is thrown, then the caller should discard the nonce and
* try again with an entirely new nonce value.
*/
public byte[] signDigest(byte[] privateKey, byte[] digest, Seed seed)
@ -142,7 +142,7 @@ public class ECDSAOperations {
* @return the ECDSA signature value
* @throws IntermediateValueException if the signature cannot be produced
* due to an unacceptable intermediate or final value. If this
* exception is thrown, then the caller should discard the nonnce and
* exception is thrown, then the caller should discard the nonce and
* try again with an entirely new nonce value.
*/
public byte[] signDigest(byte[] privateKey, byte[] digest, Nonce nonce)

View File

@ -85,7 +85,7 @@ public class EdDSAParameters {
return new SHAKE256Digester(114);
}
// Ed448 uses 64bytes long hasg for the signature message
// Ed448 uses 64bytes long hash for the signature message
@Override
public Digester createDigester(int len) {
return new SHAKE256Digester(len);