Skip to content

Commit

Permalink
8290463: Fix several comment typos in sun.security.ec
Browse files Browse the repository at this point in the history
Reviewed-by: xuelei
  • Loading branch information
HollowMan6 authored and XueleiFan committed Jul 19, 2022
1 parent 6cd1c0c commit af86cd3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -176,7 +176,7 @@ private static void validate(ECOperations ops, ECPublicKey key)
// (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).
Expand Down
Expand Up @@ -114,7 +114,7 @@ Optional<ECDSAOperations> forParameters(ECParameterSpec ecParams) {
* @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)
Expand Down Expand Up @@ -142,7 +142,7 @@ public byte[] signDigest(byte[] privateKey, byte[] digest, Seed seed)
* @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)
Expand Down
Expand Up @@ -85,7 +85,7 @@ public Digester createDigester() {
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);
Expand Down

1 comment on commit af86cd3

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.