Skip to content

Commit 3556096

Browse files
committed
Bugfix: the digest passed into EdDSAEngine is for EdDSA, not the JCA
1 parent 458212c commit 3556096

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/net/i2p/crypto/eddsa/EdDSAEngine.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ public final class EdDSAEngine extends Signature {
8686
private static class OneShotSpec implements AlgorithmParameterSpec {}
8787

8888
/**
89-
* No specific hash requested, allows any EdDSA key.
89+
* No specific EdDSA-internal hash requested, allows any EdDSA key.
9090
*/
9191
public EdDSAEngine() {
92-
super("EdDSA");
92+
super(SIGNATURE_ALGORITHM);
9393
}
9494

9595
/**
96-
* Specific hash requested, only matching keys will be allowed.
96+
* Specific EdDSA-internal hash requested, only matching keys will be allowed.
9797
* @param digest the hash algorithm that keys must have to sign or verify.
9898
*/
9999
public EdDSAEngine(MessageDigest digest) {

0 commit comments

Comments
 (0)