OpenSC / libp11

PKCS#11 wrapper library
GNU Lesser General Public License v2.1
309 stars 187 forks source link

PKCS11_get_private_key() api not compactible with different version of libcryptoauth #539

Open Pruthwiraj-Kumar-Deo opened 3 months ago

Pruthwiraj-Kumar-Deo commented 3 months ago

I have successfully generated a private key in the ECC chip using the libcryptoauth API (v3.5.1 tag), specifically in slot.

However, when attempting to access the private key pointer using the EVP_PKEY PKCS11_get_private_key(PKCS11_KEY pkey) API from libp11 (libp11-0.4.12 tag), it fails and returns NULL.

When I performed the same operations with different versions of the libraries—libcryptoauth (pkcs11 tag) and libp11 (libp11-0.4.10 tag)—everything worked fine.

Is there a compatibility issue between the versions of libcryptoauth and libp11? Alternatively, have there been any changes to the EVP_PKEY PKCS11_get_private_key(PKCS11_KEY pkey) API between libp11-0.4.10 and libp11-0.4.12?

mtrojnar commented 2 weeks ago

Have you tried the current master branch of libp11?