Corrected Ed25519 SigType name

This commit is contained in:
str4d
2014-08-21 13:08:21 +00:00
parent c860674613
commit a12f898096
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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..........