Skip to content

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