Home
last modified time | relevance | path

Searched refs:retMsg (Results 1 - 9 of 9) sorted by relevance

/drivers/peripheral/user_auth/hdi_service/coauth/inc/
H A Dexecutor_message.h50 ResultCode GetAttributeExecutorMsg(const Attribute *attribute, Uint8Array *retMsg, SignParam signParam);
57 ResultCode GetExecutorInfoMsg(ExecutorInfoHal *executorInfo, Uint8Array *retMsg);
/drivers/peripheral/user_auth/hdi_service/utils/src/
H A Dattribute.c292 ResultCode GetAttributeSerializedMsg(const Attribute *attributePublic, Uint8Array *retMsg) in GetAttributeSerializedMsg() argument
295 IF_TRUE_LOGE_AND_RETURN_VAL(retMsg == NULL, INVALID_PARAMETERS); in GetAttributeSerializedMsg()
296 IF_TRUE_LOGE_AND_RETURN_VAL(IS_ARRAY_NULL(*retMsg), INVALID_PARAMETERS); in GetAttributeSerializedMsg()
306 ResultCode writeTypeResult = WriteUInt32ToMsg(retMsg, &writeIndex, g_attributeKeyArray[i]); in GetAttributeSerializedMsg()
309 ResultCode writeLengthResult = WriteUInt32ToMsg(retMsg, &writeIndex, array->len); in GetAttributeSerializedMsg()
316 WriteDataToMsg(retMsg, &writeIndex, *array); in GetAttributeSerializedMsg()
320 retMsg->len = writeIndex; in GetAttributeSerializedMsg()
501 ResultCode GetMultiDataSerializedMsg(Uint8Array *sourceArrayMsg, uint32_t size, Uint8Array *retMsg) in GetMultiDataSerializedMsg() argument
504 IF_TRUE_LOGE_AND_RETURN_VAL(retMsg == NULL, INVALID_PARAMETERS); in GetMultiDataSerializedMsg()
505 IF_TRUE_LOGE_AND_RETURN_VAL(IS_ARRAY_NULL(*retMsg), INVALID_PARAMETER in GetMultiDataSerializedMsg()
[all...]
/drivers/peripheral/user_auth/hdi_service/utils/inc/
H A Dattribute.h111 ResultCode GetAttributeSerializedMsg(const Attribute *attribute, Uint8Array *retMsg);
125 ResultCode GetMultiDataSerializedMsg(Uint8Array *sourceArrayMsg, uint32_t size, Uint8Array *retMsg);
/drivers/peripheral/pin_auth/hdi_service/common/src/
H A Dattribute.c274 ResultCode GetAttributeSerializedMsg(const Attribute *attributePublic, Uint8Array *retMsg) in GetAttributeSerializedMsg() argument
277 IF_TRUE_LOGE_AND_RETURN_VAL(retMsg == NULL, RESULT_BAD_PARAM); in GetAttributeSerializedMsg()
278 IF_TRUE_LOGE_AND_RETURN_VAL(IS_ARRAY_NULL(*retMsg), RESULT_BAD_PARAM); in GetAttributeSerializedMsg()
288 ResultCode writeTypeResult = WriteUInt32ToMsg(retMsg, &writeIndex, g_attributeKeyArray[i]); in GetAttributeSerializedMsg()
291 ResultCode writeLengthResult = WriteUInt32ToMsg(retMsg, &writeIndex, array->len); in GetAttributeSerializedMsg()
298 WriteDataToMsg(retMsg, &writeIndex, *array); in GetAttributeSerializedMsg()
302 retMsg->len = writeIndex; in GetAttributeSerializedMsg()
/drivers/peripheral/pin_auth/hdi_service/common/inc/
H A Dattribute.h71 ResultCode GetAttributeSerializedMsg(const Attribute *attribute, Uint8Array *retMsg);
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/
H A Dwpa_p2p_cmd.c1347 struct HdiWpaKeyValue retMsg = {{0}, {0}}; in WpaInterfaceP2pGetPeer() local
1348 GetStrKeyVal(token, "=", &retMsg); in WpaInterfaceP2pGetPeer()
1349 if (strncmp(retMsg.key, "pri_dev_type", strlen("pri_dev_type")) == 0) { in WpaInterfaceP2pGetPeer()
1350 if (strcpy_s((char *)info->primaryDeviceType, WIFI_P2P_DEVICE_TYPE_LENGTH + 1, retMsg.value) != EOK) { in WpaInterfaceP2pGetPeer()
1353 } else if (strncmp(retMsg.key, "device_name", strlen("device_name")) == 0) { in WpaInterfaceP2pGetPeer()
1354 if (strcpy_s((char *)info->deviceName, WIFI_P2P_DEVICE_NAME_LENGTH + 1, retMsg.value) != EOK) { in WpaInterfaceP2pGetPeer()
1357 } else if (strncmp(retMsg.key, "config_methods", strlen("config_methods")) == 0) { in WpaInterfaceP2pGetPeer()
1358 info->configMethods = Hex2Dec(retMsg.value); in WpaInterfaceP2pGetPeer()
1359 } else if (strncmp(retMsg.key, "dev_capab", strlen("dev_capab")) == 0) { in WpaInterfaceP2pGetPeer()
1360 info->deviceCapabilities = Hex2Dec(retMsg in WpaInterfaceP2pGetPeer()
1424 struct HdiWpaKeyValue retMsg = {{0}, {0}}; WpaInterfaceP2pGetGroupCapability() local
[all...]
/drivers/peripheral/user_auth/test/unittest/attribute_test/
H A Dattribute_test.cpp433 Uint8Array retMsg = { nullptr, 0 }; in HWTEST_F() local
434 ASSERT_EQ(GetAttributeSerializedMsg(attribute, &retMsg), RESULT_BAD_PARAM); in HWTEST_F()
438 retMsg = { temp.data(), 0 }; in HWTEST_F()
439 ASSERT_EQ(GetAttributeSerializedMsg(attribute, &retMsg), RESULT_BAD_PARAM); in HWTEST_F()
441 retMsg = { temp.data(), static_cast<uint32_t>(temp.size()) }; in HWTEST_F()
442 ASSERT_EQ(GetAttributeSerializedMsg(attribute, &retMsg), RESULT_SUCCESS); in HWTEST_F()
/drivers/peripheral/user_auth/hdi_service/coauth/src/
H A Dexecutor_message.c116 ResultCode GetAttributeExecutorMsg(const Attribute *attribute, Uint8Array *retMsg, SignParam signParam) in GetAttributeExecutorMsg() argument
119 IF_TRUE_LOGE_AND_RETURN_VAL(retMsg == NULL, RESULT_GENERAL_ERROR); in GetAttributeExecutorMsg()
120 IF_TRUE_LOGE_AND_RETURN_VAL(IS_ARRAY_NULL(*retMsg), RESULT_GENERAL_ERROR); in GetAttributeExecutorMsg()
142 result = GetAttributeSerializedMsg(rootAttribute, retMsg); in GetAttributeExecutorMsg()
1081 ResultCode GetExecutorInfoMsg(ExecutorInfoHal *executorInfo, Uint8Array *retMsg) in GetExecutorInfoMsg() argument
1094 result = GetAttributeSerializedMsg(attribute, retMsg); in GetExecutorInfoMsg()
/drivers/peripheral/user_auth/hdi_service/service/
H A Duser_auth_interface_service.cpp400 Uint8Array publicKey, HdiScheduleInfo &info, Uint8Array *retMsg) in GetAuthExecutorMsg()
403 if (SetAttributeToCollectorExecMsg(paramHal, info, publicKey, retMsg) != RESULT_SUCCESS) { in GetAuthExecutorMsg()
408 if (SetAttributeToVerifierExecMsg(paramHal, info, publicKey, retMsg) != RESULT_SUCCESS) { in GetAuthExecutorMsg()
413 if (SetAttributeToAllInOneExecMsg(paramHal, info, retMsg) != RESULT_SUCCESS) { in GetAuthExecutorMsg()
399 GetAuthExecutorMsg(uint32_t executorRole, AuthParamHal paramHal, Uint8Array publicKey, HdiScheduleInfo &info, Uint8Array *retMsg) GetAuthExecutorMsg() argument

Completed in 11 milliseconds