Skip to content

Add mechanisms used by Thales Luna HSMs - #158

Open
space88man wants to merge 1 commit into
pyauth:masterfrom
space88man:add-thales-mechs
Open

Add mechanisms used by Thales Luna HSMs#158
space88man wants to merge 1 commit into
pyauth:masterfrom
space88man:add-thales-mechs

Conversation

@space88man

Copy link
Copy Markdown
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

1 participant