With colons: Where is my curve? (rsa+ecc mixed key)

Werner Koch wk at gnupg.org
Tue Jun 14 23:17:59 CEST 2016


On Tue, 14 Jun 2016 14:11, mantorix at vollbio.de said:

> This key has been created as a more or less default 3k RSA key, and I added an
> ECC encryption subkey with curve25519 after creation.
> What I am missing is the curve field filled for the subkey.

Ooops.  Here is the fix I just pushed to the repo:

diff --git a/g10/keylist.c b/g10/keylist.c
index d77c86b..0ac763d 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -1542,11 +1542,11 @@ list_keyblock_colon (ctrl_t ctrl, kbnode_t keyblock,
             }
           es_putc (':', es_stdout);	/* End of field 15. */
           es_putc (':', es_stdout);	/* End of field 16. */
-          if (pk->pubkey_algo == PUBKEY_ALGO_ECDSA
-              || pk->pubkey_algo == PUBKEY_ALGO_EDDSA
-              || pk->pubkey_algo == PUBKEY_ALGO_ECDH)
+          if (pk2->pubkey_algo == PUBKEY_ALGO_ECDSA
+              || pk2->pubkey_algo == PUBKEY_ALGO_EDDSA
+              || pk2->pubkey_algo == PUBKEY_ALGO_ECDH)
             {
-              char *curve = openpgp_oid_to_str (pk->pkey[0]);
+              char *curve = openpgp_oid_to_str (pk2->pkey[0]);
               const char *name = openpgp_oid_to_curve (curve, 0);
               if (!name)
                 name = curve;

> Perhaps I should mention, that I'm using the windows version of gpg 2.1.12

I hope to get 2.1.13 out this week, so please have some patience if you
need a new installer.

Thanks for reporting.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
    /* EFH in Erkrath: https://alt-hochdahl.de/haus */




More information about the Gnupg-users mailing list