File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
test/net/i2p/crypto/eddsa Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6464 *
6565 */
6666public final class EdDSAEngine extends Signature {
67+ public static final String SIGNATURE_ALGORITHM = "NONEwithEdDSA" ;
68+
6769 private MessageDigest digest ;
6870 private ByteArrayOutputStream baos ;
6971 private EdDSAKey key ;
Original file line number Diff line number Diff line change 1616import java .security .Provider ;
1717import java .security .Security ;
1818
19- import net .i2p .crypto .eddsa .spec .EdDSANamedCurveTable ;
20-
2119/**
2220 * A security {@link Provider} that can be registered via {@link Security#addProvider(Provider)}
2321 *
@@ -43,6 +41,6 @@ protected void setup() {
4341 // see https://docs.oracle.com/javase/8/docs/technotes/guides/security/crypto/HowToImplAProvider.html
4442 put ("KeyPairGenerator." + EdDSAKey .KEY_ALGORITHM , "net.i2p.crypto.eddsa.KeyPairGenerator" );
4543 put ("KeyFactory." + EdDSAKey .KEY_ALGORITHM , "net.i2p.crypto.eddsa.KeyFactory" );
46- put ("Signature." + EdDSANamedCurveTable . CURVE_ED25519_SHA512 , "net.i2p.crypto.eddsa.EdDSAEngine" );
44+ put ("Signature." + EdDSAEngine . SIGNATURE_ALGORITHM , "net.i2p.crypto.eddsa.EdDSAEngine" );
4745 }
4846}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public void canGetInstancesWhenProviderIsPresent() throws Exception {
3838
3939 KeyPairGenerator keyGen = KeyPairGenerator .getInstance ("EdDSA" , "EdDSA" );
4040 KeyFactory keyFac = KeyFactory .getInstance ("EdDSA" , "EdDSA" );
41- Signature sgr = Signature .getInstance ("SHA512withEd25519 " , "EdDSA" );
41+ Signature sgr = Signature .getInstance ("NONEwithEdDSA " , "EdDSA" );
4242
4343 Security .removeProvider ("EdDSA" );
4444 }
You can’t perform that action at this time.
0 commit comments