Home
last modified time | relevance | path

Searched refs:credStr (Results 1 - 9 of 9) sorted by relevance

/base/security/device_security_level/oem_property/ohos/common/
H A Ddslm_ohos_request.c61 static int32_t GenerateDslmCertChain(const DeviceIdentify *device, const RequestObject *obj, char *credStr, in GenerateDslmCertChain() argument
86 struct DslmInfoInCertChain saveInfo = {.credStr = credStr, .nonceStr = nonceStr, .udidStr = udidStr}; in GenerateDslmCertChain()
131 static int32_t RequestStandardDslmCred(const DeviceIdentify *device, const RequestObject *obj, char *credStr, in RequestStandardDslmCred() argument
136 int32_t ret = GenerateDslmCertChain(device, obj, credStr, &certChain, &certChainLen); in RequestStandardDslmCred()
154 int32_t GetCredFromCurrentDevice(char *credStr, uint32_t maxLen) in GetCredFromCurrentDevice() argument
156 if (credStr == NULL || maxLen == 0) { in GetCredFromCurrentDevice()
166 int32_t ret = fscanf_s(fp, "%s", credStr, maxLen); in GetCredFromCurrentDevice()
181 int32_t GetCredFromCurrentDevice(char *credStr, uint32_t maxLen) in GetCredFromCurrentDevice() argument
183 if (credStr in GetCredFromCurrentDevice()
221 char credStr[DSLM_CRED_STR_LEN_MAX] = {0}; RequestOhosDslmCred() local
[all...]
H A Dexternal_interface_adapter.c120 {.tag = HKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO, .blob = {strlen(info->credStr) + 1, (uint8_t *)info->credStr}}, in DslmCredAttestAdapter()
127 uint32_t certChainMaxLen = strlen(info->credStr) + strlen(info->nonceStr) + DSLM_CERT_CHAIN_BASE_LENGTH; in DslmCredAttestAdapter()
168 char credStr[DSLM_INFO_MAX_LEN_CRED] = {0}; in ValidateCertChainAdapter() local
172 {.tag = HKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO, .blob = {DSLM_INFO_MAX_LEN_CRED, (uint8_t *)credStr}}, in ValidateCertChainAdapter()
199 if (memcpy_s(resultInfo->credStr, DSLM_INFO_MAX_LEN_CRED, blob->data, blob->size) != EOK) { in ValidateCertChainAdapter()
262 saveInfo->credStr = (char *)MALLOC(DSLM_INFO_MAX_LEN_CRED); in InitDslmInfoInCertChain()
263 if (saveInfo->credStr == NULL) { in InitDslmInfoInCertChain()
272 FREE(saveInfo->credStr); in InitDslmInfoInCertChain()
273 saveInfo->credStr in InitDslmInfoInCertChain()
[all...]
H A Ddslm_ohos_request.h28 int32_t GetCredFromCurrentDevice(char *credStr, uint32_t maxLen);
H A Ddslm_ohos_verify.c215 char credStr[DSLM_CRED_STR_LEN_MAX] = {0}; in VerifyLiteDslmCred() local
216 if (memcpy_s(credStr, DSLM_CRED_STR_LEN_MAX, credBuff->credVal, credBuff->credLen + 1) != EOK) { in VerifyLiteDslmCred()
220 int32_t ret = VerifyDslmCredential(credStr, credInfo, NULL); in VerifyLiteDslmCred()
261 ret = VerifyDslmCredential(resultInfo.credStr, credInfo, NULL); in VerifyStandardDslmCred()
H A Dexternal_interface_adapter.h28 char *credStr; member
/base/security/device_security_level/oem_property/ohos/lite/impl/
H A Ddslm_ohos_init.c30 char credStr[DSLM_CRED_STR_LEN_MAX + 1] = {0}; in InitOhosDslmCred() local
31 int32_t ret = GetCredFromCurrentDevice(credStr, DSLM_CRED_STR_LEN_MAX); in InitOhosDslmCred()
37 ret = VerifyDslmCredential(credStr, credInfo, NULL); in InitOhosDslmCred()
/base/security/device_security_level/oem_property/ohos/standard/impl/
H A Ddslm_ohos_init.c30 char credStr[DSLM_CRED_STR_LEN_MAX + 1] = {0}; in InitOhosDslmCred() local
31 int32_t ret = GetCredFromCurrentDevice(credStr, DSLM_CRED_STR_LEN_MAX); in InitOhosDslmCred()
37 ret = VerifyDslmCredential(credStr, credInfo, NULL); in InitOhosDslmCred()
/base/security/device_security_level/oem_property/include/
H A Ddslm_credential.h43 int32_t GetCredFromCurrentDevice(char *credStr, uint32_t maxLen);
/base/security/device_security_level/services/dslm/
H A Ddslm_msg_utils.c225 const char *credStr = DslmGetJsonFieldString(handle, FIELD_CRED_INFO); in ParseDeviceSecInfoResponse() local
226 if (credStr == NULL) { in ParseDeviceSecInfoResponse()
232 uint32_t credLen = (uint32_t)Base64DecodeApp((uint8_t *)credStr, &credBuf); in ParseDeviceSecInfoResponse()

Completed in 4 milliseconds