scd: Fix regression for generating RSA keys on card.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 14 Dec 2015 05:37:18 +0000 (14:37 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 14 Dec 2015 05:37:18 +0000 (14:37 +0900)
commitd40975cbe8ff86fcc4a1b4963fdffc66ddee85ce
tree97a8370f0530a4c7dead5bff54bee437eb566055
parent4d3395ef1fcde0b8c454c09956863959d590ede6
scd: Fix regression for generating RSA keys on card.

* scd/app-openpgp.c (do_genkey): Strip leading zeros for fingerprint
computation.

--

This bug is difficult to reproduce because the probability is 1/256,
and key generation takes long time.  The regression was introduced
when we add the support for ECC.

GnuPG-bug-id: 2150
scd/app-openpgp.c