mirror of https://github.com/skeeto/enchive.git
Write secret key out first (more likely to fail).
parent
2cb2c2d2cb
commit
fcb4873498
|
@ -911,8 +911,8 @@ command_keygen(struct optparse *options)
|
|||
}
|
||||
|
||||
compute_public(public, secret);
|
||||
write_pubkey(pubfile, public);
|
||||
write_seckey(secfile, secret, protect ? key_derive_iterations : 0);
|
||||
write_pubkey(pubfile, public);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue