Searched refs:nonceStr (Results 1 – 5 of 5) sorted by relevance
/base/security/device_security_level/oem_property/ohos/common/ |
D | external_interface_adapter.c | 119 … = 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 …]
|
D | dslm_ohos_request.c | 38 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()
|
D | external_interface_adapter.h | 29 char *nonceStr; // challenge + pkInfoList member
|
D | dslm_ohos_verify.c | 250 ret = VerifyNonceOfCertChain(resultInfo.nonceStr, device, challenge); in VerifyStandardDslmCred()
|
/base/security/device_security_level/services/dslm/ |
D | dslm_msg_utils.c | 154 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()
|