Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement storage of Elliptic Curve keys (EVP_PKEY_EC) in pkcs11_store_key() #543

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NSavatier
Copy link

@NSavatier NSavatier commented Sep 4, 2024

Currently, storage of EC keys (EVP_PKEY_EC) is not supported in pkcs11_store_key().
This prevents from using PKCS11_store_private_key() (defined in libp11.h) to store this type of keys.

This proposition of implementation reuses the parse_ec_pkey() function from OpenSC's pkcs11-tool (see : https://github.com/OpenSC/OpenSC/blob/master/src/tools/pkcs11-tool.c#L4103 ) to add support for storage of EC keys.

For information, we've tested this implementation manually with openssl 3.0.13 on an NXP S32G-VNP-RDB2 card.

…e_key(). This implementation is based on OpenSC's parse_ec_pkey() in src/tools/pkcs11-tool.c.

Signed-off-by: Nicolas Savatier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant