Searched refs:credStr (Results 1 – 8 of 8) sorted by relevance
/base/security/device_security_level/oem_property/ohos/common/ |
D | dslm_ohos_request.c | 61 …nt32_t GenerateDslmCertChain(const DeviceIdentify *device, const RequestObject *obj, char *credStr, in GenerateDslmCertChain() argument 86 …struct DslmInfoInCertChain saveInfo = {.credStr = credStr, .nonceStr = nonceStr, .udidStr = udidSt… in GenerateDslmCertChain() 127 …32_t RequestStandardDslmCred(const DeviceIdentify *device, const RequestObject *obj, char *credStr, in RequestStandardDslmCred() argument 132 int32_t ret = GenerateDslmCertChain(device, obj, credStr, &certChain, &certChainLen); in RequestStandardDslmCred() 149 int32_t GetCredFromCurrentDevice(char *credStr, uint32_t maxLen) in GetCredFromCurrentDevice() argument 151 if (credStr == NULL || maxLen == 0) { in GetCredFromCurrentDevice() 160 int32_t ret = fscanf_s(fp, "%s", credStr, maxLen); in GetCredFromCurrentDevice() 178 char credStr[DSLM_CRED_STR_LEN_MAX] = {0}; in RequestOhosDslmCred() local 179 int32_t ret = GetCredFromCurrentDevice(credStr, DSLM_CRED_STR_LEN_MAX); in RequestOhosDslmCred() 191 return RequestSmallDslmCred((uint8_t *)credStr, strlen(credStr) + 1, credBuff); in RequestOhosDslmCred() [all …]
|
D | external_interface_adapter.c | 120 …_TAG_ATTESTATION_ID_SEC_LEVEL_INFO, .blob = {strlen(info->credStr) + 1, (uint8_t *)info->credStr}}, in DslmCredAttestAdapter() 126 …uint32_t certChainMaxLen = strlen(info->credStr) + strlen(info->nonceStr) + DSLM_CERT_CHAIN_BASE_L… in DslmCredAttestAdapter() 167 char credStr[DSLM_INFO_MAX_LEN_CRED] = {0}; in ValidateCertChainAdapter() local 171 …tag = HKS_TAG_ATTESTATION_ID_SEC_LEVEL_INFO, .blob = {DSLM_INFO_MAX_LEN_CRED, (uint8_t *)credStr}}, in ValidateCertChainAdapter() 198 if (memcpy_s(resultInfo->credStr, DSLM_INFO_MAX_LEN_CRED, blob->data, blob->size) != EOK) { in ValidateCertChainAdapter() 261 saveInfo->credStr = (char *)MALLOC(DSLM_INFO_MAX_LEN_CRED); in InitDslmInfoInCertChain() 262 if (saveInfo->credStr == NULL) { in InitDslmInfoInCertChain() 271 FREE(saveInfo->credStr); in InitDslmInfoInCertChain() 272 saveInfo->credStr = NULL; in InitDslmInfoInCertChain() 287 if (saveInfo->credStr != NULL) { in DestroyDslmInfoInCertChain() [all …]
|
D | dslm_ohos_request.h | 28 int32_t GetCredFromCurrentDevice(char *credStr, uint32_t maxLen);
|
D | dslm_ohos_verify.c | 211 char credStr[DSLM_CRED_STR_LEN_MAX] = {0}; in VerifySmallDslmCred() local 212 if (memcpy_s(credStr, DSLM_CRED_STR_LEN_MAX, credBuff->credVal, credBuff->credLen + 1) != EOK) { in VerifySmallDslmCred() 216 int32_t ret = VerifyDslmCredential(credStr, credInfo, NULL); in VerifySmallDslmCred() 257 ret = VerifyDslmCredential(resultInfo.credStr, credInfo, NULL); in VerifyStandardDslmCred()
|
D | external_interface_adapter.h | 28 char *credStr; member
|
/base/security/device_security_level/oem_property/ohos/lite/impl/ |
D | dslm_ohos_init.c | 30 char credStr[DSLM_CRED_STR_LEN_MAX] = {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/ |
D | dslm_ohos_init.c | 30 char credStr[DSLM_CRED_STR_LEN_MAX] = {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/services/dslm/ |
D | dslm_msg_utils.c | 225 const char *credStr = GetJsonFieldString(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()
|