Skip to content

CKR_MECHANISM_INVALID when using CKM_ECDSA_SHA384 #104

@sdalgic

Description

@sdalgic

# 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:

  1. Install SoftHSM
  2. Import EC keys into SoftHSM
  3. Sign data with CKM_ECDSA_SHA384 mechanism.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions