Python PKCS#11 Module with Pico HSM #18
-
I'm trying to use the Python module - https://python-pkcs11.readthedocs.io/en/latest/ to interact with the Pico-HSM on a PicoW. using either of import pkcs11 Initialise our PKCS#11 librarylib = pkcs11.lib(os.environ['PKCS11_MODULE']) data = b'INPUT DATA' Open a session on our tokenwith token.open(user_pin='123456') as session:
Throws error that the function is not supported Traceback (most recent call last): Any guidance on how to use the two together? M |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Unfortunately OpenSC does not provide AES support for HSM. This is explained in https://www.picokeys.com/2022/07/10/aes/ and mainly you must use the https://github.com/CardContact/sc-hsm-embedded In the article there is an example on generating and ciphering with AES. |
Beta Was this translation helpful? Give feedback.
Unfortunately OpenSC does not provide AES support for HSM. This is explained in https://www.picokeys.com/2022/07/10/aes/ and mainly you must use the
sc-hsm-embedded
driver:https://github.com/CardContact/sc-hsm-embedded
In the article there is an example on generating and ciphering with AES.