libp11 icon indicating copy to clipboard operation
libp11 copied to clipboard

PKCS11_get_private_key() api not compactible with different version of libcryptoauth

Open Pruthwiraj-Kumar-Deo opened this issue 6 months ago • 1 comments

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?

Pruthwiraj-Kumar-Deo avatar Jul 29 '24 14:07 Pruthwiraj-Kumar-Deo