Use the actual private key for ed25519
This commit is contained in:
parent
55a139db82
commit
781e775b3b
@ -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)
|
||||
{
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user