-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
# Your system information
- Operating system used:Ubuntu 20.04
- PyKCS11 version: 1.5.12
- Python version: 3.6
- PKCS#11 library used: libsofthsm2.so and /lib64/libprocryptoki.so
# Please describe your issue in as much detail as possible:
Describe what you expected should happen.
While trying to sign a data by using CKM_ECDSA_SHA384 mechanism with soft hsm and also hard hsm, the same problem occurs.
signature = session.sign(priv_key, byte_data, Mechanism(CKM_ECDSA_SHA384, None))
Describe what did happen.
When sign method is executed, it returns below exception.
Exception : CKR_MECHANISM_INVALID (0x00000070)
# Steps for reproducing this issue:
- Install SoftHSM
- Import EC keys into SoftHSM
- Sign data with CKM_ECDSA_SHA384 mechanism.