scd: Fix key template of ECC.

NIIBE Yutaka gniibe at fsij.org
Fri May 29 07:12:17 CEST 2015


Hello,

Here is simple fix to match ECC support in OpenPGPcard specification
3.0.

The value 0x91 was my guess-work, and it found it's wrong.  The impact
is nothing, as Gnuk 1.1 doesn't check this particular value.

This is simple obvious change, so, I'm going to push it now.

diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 10bd64e..8520231 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -2755,7 +2755,7 @@ build_ecc_privkey_template (app_t app, int keyno,
   datalen = 0;
   tp = privkey;

-  tp += add_tlv (tp, 0x91, ecc_d_len); /* Tag 0x91??? */
+  tp += add_tlv (tp, 0x92, ecc_d_len);
   datalen += ecc_d_len;

   privkey_len = tp - privkey;
-- 



More information about the Gnupg-devel mailing list