SHA2 hashes and smartcards in gpg2

Stanislav Sidorenko stanislav at sidorenko-s.com
Fri Aug 20 13:33:12 CEST 2010


Hi!

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.
http://lists.gnupg.org/pipermail/gnupg-users/2010-July/039186.html
http://lists.gnupg.org/pipermail/gnupg-users/2010-July/039236.html

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

/branches/STABLE-BRANCH-2-0/g10/call-agent.c
#endif
    snprintf (line, DIM(line)-1, "SCD PKSIGN %s%s",
              hashalgo == GCRY_MD_RMD160? "--hash=rmd160 " : "",
              serialno);
 line[DIM(line)-1] = 0;


Could you please check and fix it?


Thanks,
Stanislav



More information about the Gnupg-devel mailing list