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_WrapKey
receives an invalid value forhWrappingKey
parameter, then it should returnCKR_WRAPPING_KEY_HANDLE_INVALID
.