SHA2 in OpenPGP cards?

Simon Josefsson simon at
Wed Sep 30 14:19:43 CEST 2009

Werner Koch <wk at> writes:

> On Tue, 29 Sep 2009 09:46, simon at said:
>> Hi!  Before I spend time testing it, can the OpenPGP card support
>> RSA-SHA2 signatures?
> The v2 cards support any hash agorithm as long as they fit into pkcs#1.

Ok thanks.  Is there any problem sending the future SHA-3 hashes in the
PKCS#1 struct too?  Does the smartcard validate the PKCS#1 data in any
way before signing it?  I'm thinking also of the ad-hoc MD5/SHA1 data
used by TLS, it doesn't follow PKCS#1 format.


More information about the Gnupg-devel mailing list