From 9cdc69974530361b0c3a2c9a8f514ace2bb8a8cd Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Fri, 4 Feb 2022 14:47:42 +0100 Subject: [PATCH] Fix for key generation: signing subkey was processed as a decryption subkey by mistake (this broke generation of 25519 keys) --- tools/src/bin/opgpcard/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/src/bin/opgpcard/main.rs b/tools/src/bin/opgpcard/main.rs index bd8e757..8c2024e 100644 --- a/tools/src/bin/opgpcard/main.rs +++ b/tools/src/bin/opgpcard/main.rs @@ -519,7 +519,7 @@ fn gen_subkeys( // We begin by generating the signing subkey, which is mandatory. println!(" Generate subkey for Signing"); 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 // the sig key