object_handle_to_object
if ((ret = object_handle_to_object(hObject, &obj)) != CKR_OK) {
if ((ret = object_handle_to_object(hKey, o)) != CKR_OK)