Skip to content

Commit 5342324

Browse files
PR feedback
1 parent bcad30b commit 5342324

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/com/amazon/corretto/crypto/provider/EdGen.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void initialize(final int keysize, final SecureRandom random) {
4242
public KeyPair generateKeyPair() {
4343
final EvpEdPrivateKey privateKey = new EvpEdPrivateKey(generateEvpEdKey());
4444
final EvpEdPublicKey publicKey = privateKey.getPublicKey();
45-
if (kf == null) { // This case indicates JDK EdDSA support conditions as described in the ctor
45+
if (kf == null) { // This case indicates JDK EdDSA conditions as described in the constructor
4646
return new KeyPair(publicKey, privateKey);
4747
}
4848
try {

tst/com/amazon/corretto/crypto/provider/test/RemoveDefaultProvidersTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static void restoreProviders() {
5050

5151
@Test
5252
void testEdDSASignature() throws Exception {
53-
final byte[] message = new byte[0];
53+
final byte[] message = new byte[] {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08};
5454
final KeyPair keyPair =
5555
KeyPairGenerator.getInstance("EdDSA", NATIVE_PROVIDER).generateKeyPair();
5656
final Signature signature = Signature.getInstance("EdDSA", NATIVE_PROVIDER);

0 commit comments

Comments
 (0)