Home
last modified time | relevance | path

Searched refs:AddByteToJson (Results 1 – 25 of 32) sorted by relevance

12

/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/
Dpake_message_util.c85 …int32_t res = AddByteToJson(payload, FIELD_SALT, params->baseParams.salt.val, params->baseParams.s… in PackagePakeResponseData()
90 …res = AddByteToJson(payload, FIELD_EPK, params->baseParams.epkSelf.val, params->baseParams.epkSelf… in PackagePakeResponseData()
96 res = AddByteToJson(payload, FIELD_NONCE, params->nonce.val, params->nonce.length); in PackagePakeResponseData()
155 …int32_t res = AddByteToJson(payload, FIELD_EPK, params->baseParams.epkSelf.val, params->baseParams… in PackagePakeClientConfirmData()
160 …res = AddByteToJson(payload, FIELD_KCF_DATA, params->baseParams.kcfData.val, params->baseParams.kc… in PackagePakeClientConfirmData()
187 int32_t res = AddByteToJson(payload, FIELD_KCF_DATA, in PackagePakeServerConfirmData()
Dpake_task_common.c96 GOTO_ERR_AND_SET_RET(AddByteToJson(sendToSelf, FIELD_SESSION_KEY, params->returnKey.val, in SendResultToSelf()
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/iso_protocol_task/
Diso_server_protocol_task.c59 GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_ISO_SALT, params->baseParams.randSelf.val, in PackageServerStartMessage()
61 …GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_TOKEN, selfTokenBuf->val, selfTokenBuf->length),… in PackageServerStartMessage()
62 … GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_PEER_AUTH_ID, params->baseParams.authIdSelf.val, in PackageServerStartMessage()
141 … GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_PEER_AUTH_ID, params->baseParams.authIdSelf.val, in PackDataForCalTokenServer()
143 …GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_RETURN_CODE_MAC, tokenToPeer->val, tokenToPeer->… in PackDataForCalTokenServer()
Diso_client_protocol_task.c60 GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_ISO_SALT, params->baseParams.randSelf.val, in IsoClientStartPackData()
62 … GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_PEER_AUTH_ID, params->baseParams.authIdSelf.val, in IsoClientStartPackData()
65 …GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_SEED, params->seed.val, params->seed.length), re… in IsoClientStartPackData()
127 … GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_PEER_AUTH_ID, params->baseParams.authIdSelf.val, in PackDataForCalToken()
129 …GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_TOKEN, selfTokenBuf->val, selfTokenBuf->length),… in PackDataForCalToken()
/base/security/device_auth/services/authenticators/src/account_related/auth/iso_auth_task/
Diso_auth_server_task.c73 if (AddByteToJson(data, FIELD_PAYLOAD, in AddGetTokenDataToJson()
78 …if (AddByteToJson(data, FIELD_TOKEN, params->hmacToken, sizeof(params->hmacToken)) != CLIB_SUCCESS… in AddGetTokenDataToJson()
82 if (AddByteToJson(data, FIELD_SALT, in AddGetTokenDataToJson()
119 …if (AddByteToJson(sendToPeer, FIELD_DEV_ID, params->devIdSelf.val, params->devIdSelf.length) != CL… in PackIsoAuthServerGetTokenMsg()
214 …if (AddByteToJson(data, FIELD_AUTH_RESULT_MAC, authResultMac->val, authResultMac->length) != CLIB_… in PackCalTokenAndSessionKeyMsg()
Diso_auth_client_task.c48 if (AddByteToJson(data, FIELD_SALT, in AddBeginDataToJson()
53 if (AddByteToJson(data, FIELD_PAYLOAD, in AddBeginDataToJson()
58 if (AddByteToJson(data, FIELD_SEED, params->seed, sizeof(params->seed)) != CLIB_SUCCESS) { in AddBeginDataToJson()
98 …if (AddByteToJson(sendToPeer, FIELD_DEV_ID, params->devIdSelf.val, params->devIdSelf.length) != CL… in PackIsoAuthClientBeginMsg()
215 …if (AddByteToJson(data, FIELD_TOKEN, params->hmacToken, sizeof(params->hmacToken)) != CLIB_SUCCESS… in PackIsoAuthClientGetTokenMsg()
/base/security/device_auth/services/authenticators/src/account_related/auth/pake_v2_auth_task/
Dpake_v2_auth_server_task.c101 …GOTO_ERR_AND_SET_RET(AddByteToJson(data, FIELD_AUTH_PK_INFO_SIGN, innerTask->params.pkInfoSignSelf… in PrepareAsyServerStepOneData()
103 GOTO_ERR_AND_SET_RET(AddByteToJson(data, FIELD_EPK, innerTask->params.pakeParams.epkSelf.val, in PrepareAsyServerStepOneData()
105 GOTO_ERR_AND_SET_RET(AddByteToJson(data, FIELD_SALT, innerTask->params.pakeParams.salt.val, in PrepareAsyServerStepOneData()
185 GOTO_IF_ERR(AddByteToJson(sendToSelf, FIELD_SESSION_KEY, in SendFinalToOut()
194 GOTO_IF_ERR(AddByteToJson(sendToPeerData, in SendFinalToOut()
Dpake_v2_auth_client_task.c67 GOTO_IF_ERR(AddByteToJson(data, FIELD_AUTH_PK_INFO_SIGN, innerTask->params.pkInfoSignSelf.val, in AsyAuthClientStepOne()
120 … GOTO_ERR_AND_SET_RET(AddByteToJson(data, FIELD_KCF_DATA, innerTask->params.pakeParams.kcfData.val, in PrepareAsyClientStepTwoData()
124 GOTO_ERR_AND_SET_RET(AddByteToJson(data, FIELD_EPK, innerTask->params.pakeParams.epkSelf.val, in PrepareAsyClientStepTwoData()
194 GOTO_IF_ERR(AddByteToJson(sendToSelf, in SendFinalToOut()
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/lite_exchange_task/
Diso_client_unbind_exchange_task.c107 …GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_ENC_DATA, encDataBuf->val, encDataBuf->length), … in PackDataForStartUnbind()
108 GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_NONCE, nonceBuf->val, nonceBuf->length), res); in PackDataForStartUnbind()
127 GOTO_ERR_AND_SET_RET(AddByteToJson(rmvInfoJson, FIELD_RMV_ID, params->baseParams.authIdSelf.val, in GenerateEncRemoveInfo()
Diso_server_bind_exchange_task.c208 …GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_ENC_AUTH_TOKEN, encAuthCodeBuf.val, encAuthCodeB… in GenerateAuthCodeAndImport()
209 GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_NONCE, nonceBuf.val, nonceBuf.length), res); in GenerateAuthCodeAndImport()
Diso_client_bind_exchange_task.c221 GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_NONCE, nonce, NONCE_SIZE), res); in ClientBindExchangeStart()
222 …GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_ENC_DATA, encData, sizeof(task->challenge) + TAG… in ClientBindExchangeStart()
/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/pake_v1_task/pake_v1_protocol_task/
Dpake_v1_server_protocol_task.c59 res = AddByteToJson(payload, FIELD_CHALLENGE, params->baseParams.challengeSelf.val, in PackageMsgForResponse()
66 res = AddByteToJson(payload, FIELD_PEER_AUTH_ID, params->baseParams.idSelf.val, in PackageMsgForResponse()
Dpake_v1_client_protocol_task.c67 res = AddByteToJson(payload, FIELD_PEER_AUTH_ID, params->baseParams.idSelf.val, in PakeRequest()
129 res = AddByteToJson(payload, FIELD_CHALLENGE, params->baseParams.challengeSelf.val, in PackageMsgForClientConfirm()
/base/security/device_auth/common_lib/interfaces/
Djson_utils.h94 int32_t AddByteToJson(CJson *jsonObj, const char *key, const uint8_t *byte, uint32_t len);
/base/security/device_auth/services/key_agree_sdk/src/
Dkey_agree_session.c287 …int32_t res = AddByteToJson(payload, FIELD_KCF_DATA, baseParams->kcfData.val, baseParams->kcfData.… in PackagePakeServerConfirmData()
331 …int32_t res = AddByteToJson(payload, FIELD_EPK, baseParams->epkSelf.val, baseParams->epkSelf.lengt… in PackagePakeClientConfirmData()
336 … res = AddByteToJson(payload, FIELD_KCF_DATA, baseParams->kcfData.val, baseParams->kcfData.length); in PackagePakeClientConfirmData()
341 …res = AddByteToJson(payload, FIELD_PEER_AUTH_ID, baseParams->idSelf.val, baseParams->idSelf.length… in PackagePakeClientConfirmData()
468 int32_t res = AddByteToJson(payload, FIELD_SALT, baseParams->salt.val, baseParams->salt.length); in PackagePakeResponseData()
473 res = AddByteToJson(payload, FIELD_EPK, baseParams->epkSelf.val, baseParams->epkSelf.length); in PackagePakeResponseData()
478 …res = AddByteToJson(payload, FIELD_PEER_AUTH_ID, baseParams->idSelf.val, baseParams->idSelf.length… in PackagePakeResponseData()
/base/security/device_auth/services/
Ddevice_auth.c47 …if (AddByteToJson(authParams, FIELD_REQUEST_ID, (const uint8_t*)&authReqId, sizeof(int64_t)) != HC… in InitAuthDeviceTask()
70 …if (AddByteToJson(receivedData, FIELD_REQUEST_ID, (const uint8_t*)&authReqId, sizeof(int64_t)) != … in InitProcessDataTask()
/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/standard_exchange_task/
Dstandard_exchange_message_util.c46 GOTO_ERR_AND_SET_RET(AddByteToJson(data, key, exAuthInfoVal, exAuthInfoLen), res); in PackageNonceAndCipherToJson()
Dstandard_client_unbind_exchange_task.c56 … GOTO_ERR_AND_SET_RET(AddByteToJson(data, FIELD_CHALLENGE, params->baseParams.challengeSelf.val, in ExchangeRequest()
Dstandard_server_bind_exchange_task.c53 if (AddByteToJson(payload, FIELD_CHALLENGE, in ExchangeStart()
Dstandard_client_bind_exchange_task.c56 … GOTO_ERR_AND_SET_RET(AddByteToJson(data, FIELD_CHALLENGE, params->baseParams.challengeSelf.val, in ExchangeRequest()
Dstandard_server_unbind_exchange_task.c53 if (AddByteToJson(payload, FIELD_CHALLENGE, in ExchangeStart()
Dcommon_standard_bind_exchange.c116 … GOTO_ERR_AND_SET_RET(AddByteToJson(authInfoJson, FIELD_AUTH_ID, pakeParams->baseParams.idSelf.val, in PackageAuthInfo()
118 GOTO_ERR_AND_SET_RET(AddByteToJson(authInfoJson, FIELD_AUTH_PK, exchangeParams->pubKeySelf.val, in PackageAuthInfo()
Dcommon_standard_unbind_exchange.c79 GOTO_ERR_AND_SET_RET(AddByteToJson(rmvInfoJson, FIELD_RMV_ID, pakeParams->baseParams.idSelf.val, in PackageRmvInfo()
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/
Diso_task_common.c110 GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_NONCE, nonce, sizeof(nonce)), ret); in GenerateEncResult()
111 GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_ENC_RESULT, out, sizeof(int) + TAG_LEN), ret); in GenerateEncResult()
145 …GOTO_ERR_AND_SET_RET(AddByteToJson(sendToSelf, FIELD_SESSION_KEY, returnSessionKey, params->keyLen… in SendResultToFinalSelf()
189 GOTO_ERR_AND_SET_RET(AddByteToJson(sendToSelf, FIELD_SESSION_KEY, returnKey, in GenEncResult()
/base/security/device_auth/services/group_manager/src/channel_manager/soft_bus_channel/
Dsoft_bus_channel.c136 …if (AddByteToJson(recvData, FIELD_CHANNEL_ID, (uint8_t *)&channelId, sizeof(int64_t)) != HC_SUCCES… in GenRecvData()

12