Use the actual private key for ed25519

This commit is contained in:
David Blacka 2018-07-15 16:56:15 +00:00
parent 55a139db82
commit 781e775b3b
2 changed files with 2 additions and 2 deletions

View File

@ -614,7 +614,7 @@ public class DnsKeyAlgorithm
EdDSAParameterSpec ed_spec = getEdwardsCurveParams(algorithm);
try
{
mEdKeyGenerator.initialize(ed_spec);
mEdKeyGenerator.initialize(ed_spec, new SecureRandom());
}
catch (InvalidAlgorithmParameterException e)
{

View File

@ -748,7 +748,7 @@ public class DnsKeyConverter
out.println("Algorithm: " + alg + " (" + mAlgorithms.algToString(alg)
+ ")");
out.print("PrivateKey: ");
out.println(base64.toString(priv.geta()));
out.println(base64.toString(priv.getSeed()));
return sw.toString();
}