CardContact / sc-hsm-embedded

PKCS#11 and CSP-Minidriver library for the SmartCard-HSM and STARCOS based signature cards
BSD 3-Clause "New" or "Revised" License
95 stars 31 forks source link

Module returns wrong CKR if private operation not allowed for key on Starcos #7

Closed CardContact closed 9 years ago

CardContact commented 9 years ago

Returns CKR_DEVICE_ERROR if signing operation not supported. Returns CKR_ENCRYPTED_DATA_INVALID if decryption operation not supported.

Should return CKR_KEY_FUNCTION_NOT_PERMITTED if card returns SW1/SW2=6A81.