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

[pkcs11-tool] Add support for CKM_AES_CMAC_GENERAL #3184

Merged

Conversation

b-ori
Copy link
Contributor

@b-ori b-ori commented Jun 20, 2024

Hi,
This pull request adds the support for the CKM_AES_CMAC_GENERAL mechanism in pkcs11-tool.
The CK_MAC_GENERAL_PARAMS and CK_MAC_GENERAL_PARAMS_PTR data types were added as they are needed by this mechanism.
The changes were validated using the Trustonic TEE HSM.
Best regards,
Rémy

@b-ori b-ori force-pushed the trustonic_pkcs11_tool_add_aes_cmac_general branch from c0c8c3e to 2e4d490 Compare June 20, 2024 12:57
Copy link
Member

@Jakuje Jakuje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work with softhsm? If so, it would be great to get some test coverage for this.

src/tools/pkcs11-tool.c Outdated Show resolved Hide resolved
src/tools/pkcs11-tool.c Outdated Show resolved Hide resolved
@b-ori b-ori force-pushed the trustonic_pkcs11_tool_add_aes_cmac_general branch from 2e4d490 to 2aa1cae Compare June 20, 2024 14:52
@b-ori
Copy link
Contributor Author

b-ori commented Jun 20, 2024

@b-ori b-ori force-pushed the trustonic_pkcs11_tool_add_aes_cmac_general branch from 2aa1cae to 918de7e Compare June 24, 2024 09:08
@b-ori
Copy link
Contributor Author

b-ori commented Jun 24, 2024

@Jakuje just addressed your last comment, tell me if you want me to correct anything else

@b-ori b-ori force-pushed the trustonic_pkcs11_tool_add_aes_cmac_general branch from 918de7e to 0edb564 Compare June 24, 2024 09:17
@b-ori b-ori force-pushed the trustonic_pkcs11_tool_add_aes_cmac_general branch from 0edb564 to 28b1bcb Compare June 24, 2024 09:22
@b-ori b-ori force-pushed the trustonic_pkcs11_tool_add_aes_cmac_general branch from 28b1bcb to 4a4ba56 Compare June 24, 2024 09:50
@Jakuje Jakuje merged commit 62c0daa into OpenSC:master Jul 2, 2024
45 of 46 checks passed
@Jakuje
Copy link
Member

Jakuje commented Jul 2, 2024

Thank you for your contribution!

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.

None yet

2 participants