SHA2 hashes and smartcards in gpg2

Stanislav Sidorenko stanislav at
Fri Aug 20 13:33:12 CEST 2010


A month ago I've found a issue in gpg1 that did not allow using SHA2
hashes for signing if it is done by smartcard:

Two links to that discussion.

But as I can see current gpg2 also has such issue.

    snprintf (line, DIM(line)-1, "SCD PKSIGN %s%s",
              hashalgo == GCRY_MD_RMD160? "--hash=rmd160 " : "",
 line[DIM(line)-1] = 0;

Could you please check and fix it?


More information about the Gnupg-devel mailing list