Home
last modified time | relevance | path

Searched refs:udidStr (Results 1 – 5 of 5) sorted by relevance

/base/security/device_security_level/oem_property/ohos/common/
Dexternal_interface_adapter.c46 static int32_t GenerateFuncParamJson(bool isSelfPk, const char *udidStr, char *dest, uint32_t destM…
48 int32_t GetPkInfoListStr(bool isSelf, const char *udidStr, char **pkInfoList) in GetPkInfoListStr() argument
56 …int32_t ret = GenerateFuncParamJson(isSelf, udidStr, paramJson, DEVICE_AUTH_INPUT_PARAM_STRING_LEN… in GetPkInfoListStr()
121 ….tag = HKS_TAG_ATTESTATION_ID_UDID, .blob = {strlen(info->udidStr) + 1, (uint8_t *)info->udidStr}}, in DslmCredAttestAdapter()
168 char udidStr[DSLM_INFO_MAX_LEN_UDID] = {0}; in ValidateCertChainAdapter() local
172 {.tag = HKS_TAG_ATTESTATION_ID_UDID, .blob = {DSLM_INFO_MAX_LEN_UDID, (uint8_t *)udidStr}}, in ValidateCertChainAdapter()
203 if (memcpy_s(resultInfo->udidStr, DSLM_INFO_MAX_LEN_UDID, blob->data, blob->size) != EOK) { in ValidateCertChainAdapter()
226 static int32_t GenerateFuncParamJson(bool isSelfPk, const char *udidStr, char *dest, uint32_t destM… in GenerateFuncParamJson() argument
234 AddFieldStringToJson(json, "udid", udidStr); in GenerateFuncParamJson()
267 saveInfo->udidStr = (char *)MALLOC(DSLM_INFO_MAX_LEN_UDID); in InitDslmInfoInCertChain()
[all …]
Dexternal_interface_adapter.h27 char *udidStr; member
32 int32_t GetPkInfoListStr(bool isSelf, const char *udidStr, char **pkInfoList);
Ddslm_ohos_request.c69 char udidStr[UDID_STRING_LENGTH] = {0}; in GenerateDslmCertChain() local
70 if (memcpy_s(udidStr, UDID_STRING_LENGTH, device->identity, device->length) != EOK) { in GenerateDslmCertChain()
75 ret = GetPkInfoListStr(true, udidStr, &pkInfoListStr); in GenerateDslmCertChain()
86 …ruct DslmInfoInCertChain saveInfo = {.credStr = credStr, .nonceStr = nonceStr, .udidStr = udidStr}; in GenerateDslmCertChain()
Ddslm_ohos_verify.c175 char udidStr[UDID_STRING_LENGTH] = {0}; in VerifyNonceOfCertChain() local
176 if (memcpy_s(udidStr, UDID_STRING_LENGTH, device->identity, device->length) != EOK) { in VerifyNonceOfCertChain()
188 ret = GetPkInfoListStr(false, udidStr, &pkInfoListStr); in VerifyNonceOfCertChain()
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_test.cpp294 const char *udidStr = "device"; variable
297 int32_t result = GetPkInfoListStr(true, udidStr, &pkInfoListStr);
303 const char *udidStr = "device"; variable
311 int32_t result = GetPkInfoListStr(true, udidStr, &pkInfoListStr);
317 const char *udidStr = "device"; variable
324 int32_t result = GetPkInfoListStr(true, udidStr, &pkInfoListStr);
330 const char *udidStr = "device"; variable
337 int32_t result = GetPkInfoListStr(true, udidStr, &pkInfoListStr);