Fix for key generation: signing subkey was processed as a decryption subkey by mistake (this broke generation of 25519 keys)
This commit is contained in:
parent
5e0007c7fd
commit
9cdc699745
1 changed files with 1 additions and 1 deletions
|
@ -519,7 +519,7 @@ fn gen_subkeys(
|
||||||
// We begin by generating the signing subkey, which is mandatory.
|
// We begin by generating the signing subkey, which is mandatory.
|
||||||
println!(" Generate subkey for Signing");
|
println!(" Generate subkey for Signing");
|
||||||
let (pkm, ts) = admin.generate_key_simple(KeyType::Signing, algo)?;
|
let (pkm, ts) = admin.generate_key_simple(KeyType::Signing, algo)?;
|
||||||
let key_sig = public_key_material_to_key(&pkm, KeyType::Decryption, ts)?;
|
let key_sig = public_key_material_to_key(&pkm, KeyType::Signing, ts)?;
|
||||||
|
|
||||||
// make decryption subkey (unless disabled), with the same algorithm as
|
// make decryption subkey (unless disabled), with the same algorithm as
|
||||||
// the sig key
|
// the sig key
|
||||||
|
|
Loading…
Reference in a new issue