forked from I2P_Developers/i2p.i2p
Corrected Ed25519 SigType name
This commit is contained in:
@ -600,7 +600,7 @@ public class SU3File {
|
|||||||
for (SigType t : EnumSet.allOf(SigType.class)) {
|
for (SigType t : EnumSet.allOf(SigType.class)) {
|
||||||
if (!t.isAvailable())
|
if (!t.isAvailable())
|
||||||
continue;
|
continue;
|
||||||
if (t == SigType.EdDSA_SHA512_25519)
|
if (t == SigType.EdDSA_SHA512_Ed25519)
|
||||||
continue; // not supported by keytool, and does double hashing right now
|
continue; // not supported by keytool, and does double hashing right now
|
||||||
buf.append(" ").append(t).append("\t(code: ").append(t.getCode()).append(')');
|
buf.append(" ").append(t).append("\t(code: ").append(t.getCode()).append(')');
|
||||||
if (t.getCode() == DEFAULT_SIG_CODE)
|
if (t.getCode() == DEFAULT_SIG_CODE)
|
||||||
|
@ -49,7 +49,7 @@ public enum SigType {
|
|||||||
// TESTING....................
|
// TESTING....................
|
||||||
|
|
||||||
/** Pubkey 32 bytes; privkey 32 bytes; hash 64 bytes; sig 64 bytes; */
|
/** Pubkey 32 bytes; privkey 32 bytes; hash 64 bytes; sig 64 bytes; */
|
||||||
EdDSA_SHA512_25519(7, 32, 32, 64, 64, SigAlgo.EdDSA, "SHA-512", "SHA512withEdDSA", EdDSANamedCurveTable.getByName("ed25519-sha-512"));
|
EdDSA_SHA512_Ed25519(4, 32, 32, 64, 64, SigAlgo.EdDSA, "SHA-512", "SHA512withEdDSA", EdDSANamedCurveTable.getByName("ed25519-sha-512"));
|
||||||
|
|
||||||
// others..........
|
// others..........
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user