Home
last modified time | relevance | path

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

/base/security/device_security_level/oem_property/ohos/common/
Dexternal_interface_adapter.c119 … = HKS_TAG_ATTESTATION_CHALLENGE, .blob = {strlen(info->nonceStr) + 1, (uint8_t *)info->nonceStr}}, in DslmCredAttestAdapter()
126 …uint32_t certChainMaxLen = strlen(info->credStr) + strlen(info->nonceStr) + DSLM_CERT_CHAIN_BASE_L… in DslmCredAttestAdapter()
166 char nonceStr[DSLM_INFO_MAX_LEN_NONCE] = {0}; in ValidateCertChainAdapter() local
170 … {.tag = HKS_TAG_ATTESTATION_CHALLENGE, .blob = {DSLM_INFO_MAX_LEN_NONCE, (uint8_t *)nonceStr}}, in ValidateCertChainAdapter()
193 if (memcpy_s(resultInfo->nonceStr, DSLM_INFO_MAX_LEN_NONCE, blob->data, blob->size) != EOK) { in ValidateCertChainAdapter()
257 saveInfo->nonceStr = (char *)MALLOC(DSLM_INFO_MAX_LEN_NONCE); in InitDslmInfoInCertChain()
258 if (saveInfo->nonceStr == NULL) { in InitDslmInfoInCertChain()
263 FREE(saveInfo->nonceStr); in InitDslmInfoInCertChain()
264 saveInfo->nonceStr = NULL; in InitDslmInfoInCertChain()
269 FREE(saveInfo->nonceStr); in InitDslmInfoInCertChain()
[all …]
Ddslm_ohos_request.c38 static int32_t TransToJsonStr(const char *challengeStr, const char *pkInfoListStr, char **nonceStr) in TransToJsonStr() argument
52 *nonceStr = ConvertJsonToString(json); in TransToJsonStr()
53 if (*nonceStr == NULL) { in TransToJsonStr()
65 char *nonceStr = NULL; in GenerateDslmCertChain() local
81 ret = TransToJsonStr(challengeStr, pkInfoListStr, &nonceStr); in GenerateDslmCertChain()
86 …struct DslmInfoInCertChain saveInfo = {.credStr = credStr, .nonceStr = nonceStr, .udidStr = udidSt… in GenerateDslmCertChain()
97 if (nonceStr != NULL) { in GenerateDslmCertChain()
98 FREE(nonceStr); in GenerateDslmCertChain()
Dexternal_interface_adapter.h29 char *nonceStr; // challenge + pkInfoList member
Ddslm_ohos_verify.c250 ret = VerifyNonceOfCertChain(resultInfo.nonceStr, device, challenge); in VerifyStandardDslmCred()
/base/security/device_security_level/services/dslm/
Ddslm_msg_utils.c154 const char *nonceStr = GetJsonFieldString(handle, FIELD_CHALLENGE); in ParseDeviceSecInfoRequest() local
155 if (nonceStr == NULL) { in ParseDeviceSecInfoRequest()
160 …int32_t ret = HexStringToByte(nonceStr, strlen(nonceStr), (uint8_t *)&obj->challenge, sizeof(obj->… in ParseDeviceSecInfoRequest()
210 const char *nonceStr = GetJsonFieldString(handle, FIELD_CHALLENGE); in ParseDeviceSecInfoResponse() local
211 if (nonceStr == NULL) { in ParseDeviceSecInfoResponse()
216 … int32_t ret = HexStringToByte(nonceStr, strlen(nonceStr), (uint8_t *)&nonceNum, sizeof(uint64_t)); in ParseDeviceSecInfoResponse()