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

Add mechanisms used by Thales Luna HSMs #158

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

Conversation

space88man
Copy link
Contributor

These mechanisms are included in Thales Luna HSMs.

The tool cmu uses CKM_AES_KWP to import PKCS#8 keys into the HSM.

With this patch, I am able to replicate the behaviour of cmu importkey ... with python-pkcs11.

# Thales libCryptoki SDK header files
#define CKM_AES_KEY_WRAP_KWP           0x0000210BUL

#define CKM_AES_KW                              (CKM_VENDOR_DEFINED + 0x170)
#define CKM_AES_KWP                             (CKM_VENDOR_DEFINED + 0x171)

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