Skip to content

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 <nicolas.savatier@viveris.fr>
@mtrojnar
Copy link
Member

mtrojnar commented Dec 2, 2024

@NSavatier Are you working on fixing the failed tests?

@mtrojnar mtrojnar closed this Mar 17, 2025
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.

2 participants