In the library that I have developer passes source key and CK_INVALID_HANDLE (instead of wrapping key) to C_wrapKey API and in return I get success.
I doubt this behaviour. Is this the correct return code?
In the library that I have developer passes source key and CK_INVALID_HANDLE (instead of wrapping key) to C_wrapKey API and in return I get success.
I doubt this behaviour. Is this the correct return code?
If you mean that
C_WrapKeyreceives an invalid value forhWrappingKeyparameter, then it should returnCKR_WRAPPING_KEY_HANDLE_INVALID.