Home
last modified time | relevance | path

Searched refs:deviceIdPeer (Results 1 – 4 of 4) sorted by relevance

/base/security/device_auth/services/authenticators/src/account_related/auth/iso_auth_task/
Diso_auth_task_common.c285 HcFree(params->deviceIdPeer); in DestroyIsoAuthParams()
286 params->deviceIdPeer = NULL; in DestroyIsoAuthParams()
308 const char *deviceIdPeer = GetStringFromJson(in, FIELD_DEVICE_ID); in GetPayloadValue() local
309 if (deviceIdPeer == NULL) { in GetPayloadValue()
313 uint32_t deviceIdPeerLen = HcStrlen(deviceIdPeer); in GetPayloadValue()
314 params->deviceIdPeer = (char *)HcMalloc(deviceIdPeerLen + 1, 0); in GetPayloadValue()
315 if (params->deviceIdPeer == NULL) { in GetPayloadValue()
319 if (memcpy_s(params->deviceIdPeer, deviceIdPeerLen + 1, deviceIdPeer, deviceIdPeerLen) != EOK) { in GetPayloadValue()
358 uint32_t deviceIdPeerLen = HcStrlen(params->deviceIdPeer); in ExtractAndVerifyPayload()
370 …y_s(combineString + params->devIdPeer.length, len - params->devIdPeer.length, params->deviceIdPeer, in ExtractAndVerifyPayload()
[all …]
/base/security/device_auth/services/authenticators/src/account_related/auth/pake_v2_auth_task/
Dpake_v2_auth_task_common.c153 uint32_t deviceIdPeerLen = HcStrlen((const char *)params->deviceIdPeer.val); in ExtractPakePeerId()
162 …params->pakeParams.idPeer.length - params->devIdPeer.length, params->deviceIdPeer.val, deviceIdPee… in ExtractPakePeerId()
228 if (InitCharStringBuff(&params->deviceIdPeer, len) != HC_SUCCESS) { in ExtractPeerDeviceId()
232 if (memcpy_s(params->deviceIdPeer.val, params->deviceIdPeer.length + 1, deviceId, len) != EOK) { in ExtractPeerDeviceId()
236 for (uint32_t i = 0; i < params->deviceIdPeer.length; i++) { in ExtractPeerDeviceId()
238 if (params->deviceIdPeer.val[i] >= 'a' && params->deviceIdPeer.val[i] <= 'f') { in ExtractPeerDeviceId()
239 params->deviceIdPeer.val[i] = (uint8_t)toupper(params->deviceIdPeer.val[i]); in ExtractPeerDeviceId()
458 FreeUint8Buff(&params->deviceIdPeer); in DestroyPakeAuthParams()
/base/security/device_auth/services/authenticators/inc/account_related/auth/iso_auth_task/
Diso_auth_task_common.h39 char *deviceIdPeer; member
/base/security/device_auth/services/authenticators/inc/account_related/auth/pake_v2_auth_task/
Dpake_v2_auth_task_common.h34 Uint8Buff deviceIdPeer; member