Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Mar 7, 2025
1 parent 5b217fd commit 07959c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/com/amazon/corretto/crypto/provider/EdGen.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void initialize(final int keysize, final SecureRandom random) {
public KeyPair generateKeyPair() {
final EvpEdPrivateKey privateKey = new EvpEdPrivateKey(generateEvpEdKey());
final EvpEdPublicKey publicKey = privateKey.getPublicKey();
if (kf == null) { // This case indicates JDK EdDSA support conditions as described in the ctor
if (kf == null) { // This case indicates JDK EdDSA conditions as described in the constructor
return new KeyPair(publicKey, privateKey);
}
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static void restoreProviders() {

@Test
void testEdDSASignature() throws Exception {
final byte[] message = new byte[0];
final byte[] message = new byte[] {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08};
final KeyPair keyPair =
KeyPairGenerator.getInstance("EdDSA", NATIVE_PROVIDER).generateKeyPair();
final Signature signature = Signature.getInstance("EdDSA", NATIVE_PROVIDER);
Expand Down

0 comments on commit 07959c8

Please sign in to comment.