What were you trying to do that didn't work?
Use the mechanism AES_KEY_WRAP_KWP (RFC5649)
Please provide the package NVR for which bug is seen:
softhsm-2.6.1-7.el9.2.x86_64
How reproducible:
Always
Steps to reproduce
- Create HSM session AES key (for blob wrapping)
- Encrypt a blob(PKCS8 DER data) with session key (PKCS8 key)
- C_UnwrapKey() the ciphered data to import a private key to the HSM
Expected results
Private key can be unwrapped and persisted to the HSM
Actual results
AES_KEY_WRAP_KWP is an invalid mechanism
Reported to upstream as: https://github.com/opendnssec/SoftHSMv2/issues/726