HF RL Explorer

ECDH key derivation broken on sc-hsm and MyEID cards (CKR GENERAL ERROR)

ECDH key derivation broken on sc-hsm and MyEID cards (CKR GENERAL ERROR): a task in LegoFlow-SWE (Harbor dataset). When attempting to perform an ECDH key-agreement operation on a sc-hsm or MyEID smart card using pkcs11-tool , the derive step fails with error CKR GENERAL ERROR (0x5) . The operation…

The task

When attempting to perform an ECDH key-agreement operation on a sc-hsm or MyEID smart card using `pkcs11-tool`, the derive step fails with error `CKR_GENERAL_ERROR (0x5)`. The operation is requested with the `ECDH1-DERIVE` mechanism and uses a `CK_ECDH1_DERIVE_PARAMS` structure where the derivation function is left…

Part of Lego-X/LegoFlow-SWE.