scd: Fix key template of ECC.
gniibe at fsij.org
Fri May 29 07:12:17 CEST 2015
Here is simple fix to match ECC support in OpenPGPcard specification
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
@@ -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