[gnutls-devel] [PATCH] pkcs11: fix passing of incorrect variable in privkey_get_pubkey

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Sun Dec 6 10:40:09 CET 2015


On Sun, 2015-12-06 at 00:46 +0100, Jan Vcelak wrote:
> The code worked for RSA because the content of the variables matched.
> But it doesn't match for ECC.
> 
> CKM_RSA_PKCS_KEY_PAIR_GEN (0x0) == CKK_RSA (0x0)
> CKM_ECDSA_KEY_PAIR_GEN (0x1040) != CKK_ECDSA (0x3)

Thank you, Applied.





More information about the Gnutls-devel mailing list