Skip to content

Commit

Permalink
Remove old comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sp717 committed Aug 6, 2024
1 parent 0623fd9 commit a6577c9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions src/com/amazon/corretto/crypto/provider/EdGen.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.security.KeyPair;
import java.security.KeyPairGeneratorSpi;
import java.security.SecureRandom;
// import java.security.spec.NamedParameterSpec;

class EdGen extends KeyPairGeneratorSpi {
/**
Expand All @@ -17,7 +16,6 @@ class EdGen extends KeyPairGeneratorSpi {
private static native long generateEvpEdEcKey();

private final AmazonCorrettoCryptoProvider provider_;
// private NamedParameterSpec spec = NamedParameterSpec.ED25519;

EdGen(AmazonCorrettoCryptoProvider provider) {
Loader.checkNativeLibraryAvailability();
Expand All @@ -35,8 +33,6 @@ public KeyPair generateKeyPair() {
final EvpEdEcPublicKey publicKey;
privateKey = new EvpEdEcPrivateKey(generateEvpEdEcKey());
publicKey = privateKey.getPublicKey();
// privateKey = new EvpEcPrivateKey((long) ecParams.use(ptr -> generateEvpEcKey(ptr,
// keyGenConsistency)));
return new KeyPair(publicKey, privateKey);
}
}
8 changes: 0 additions & 8 deletions src/com/amazon/corretto/crypto/provider/EvpEdEcKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
package com.amazon.corretto.crypto.provider;

// import java.security.interfaces.EdECKey;
// import java.security.spec.NamedParameterSpec;

abstract class EvpEdEcKey extends EvpKey {
private static final long serialVersionUID = 1;

EvpEdEcKey(final InternalKey key, final boolean isPublicKey) {
super(key, EvpKeyType.Ed25519, isPublicKey);
}

// @Override
// public NamedParameterSpec getParams() {
// return NamedParameterSpec.ED25519;
// }
}
2 changes: 0 additions & 2 deletions src/com/amazon/corretto/crypto/provider/EvpKeyType.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import java.security.interfaces.ECPublicKey;
import java.security.interfaces.RSAPrivateKey;
import java.security.interfaces.RSAPublicKey;
// import java.security.interfaces.EdECPrivateKey;
// import java.security.interfaces.EdECPublicKey;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
import java.util.EnumSet;
Expand Down

0 comments on commit a6577c9

Please sign in to comment.