/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/standard_exchange_task/ |
D | das_standard_token_manager.c | 21 static int32_t RegisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authI… in RegisterLocalIdentity() argument 25 Uint8Buff serviceTypeBuff = { (uint8_t *)serviceType, strlen(serviceType) }; in RegisterLocalIdentity() 52 static int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *aut… in UnregisterLocalIdentity() argument 56 Uint8Buff serviceTypeBuff = { (uint8_t *)serviceType, strlen(serviceType) }; in UnregisterLocalIdentity() 77 static int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authIdPe… in DeletePeerAuthInfo() argument 81 Uint8Buff serviceTypeBuff = { (uint8_t *)serviceType, strlen(serviceType) }; in DeletePeerAuthInfo() 128 Uint8Buff serviceType = { (uint8_t *)params->serviceType, strlen(params->serviceType) }; in ComputeAndSavePsk() local 129 …int32_t res = GenerateKeyAlias(&packageName, &serviceType, keyType, &(params->baseParams.idSelf), … in ComputeAndSavePsk() 139 …res = GenerateKeyAlias(&packageName, &serviceType, keyTypePeer, &(params->baseParams.idPeer), &pee… in ComputeAndSavePsk() 158 …res = GenerateKeyAlias(&packageName, &serviceType, KEY_ALIAS_PSK, &(params->baseParams.idPeer), &s… in ComputeAndSavePsk() [all …]
|
D | common_standard_bind_exchange.c | 368 Uint8Buff serviceType = { (uint8_t *)pakeParams->serviceType, strlen(pakeParams->serviceType) }; in SaveAuthInfo() local 369 …int32_t res = GenerateKeyAlias(&packageName, &serviceType, keyType, &(pakeParams->baseParams.idPee… in SaveAuthInfo() 399 Uint8Buff serviceType = { (uint8_t *)pakeParams->serviceType, strlen(pakeParams->serviceType) }; in ClientRequestStandardBindExchange() local 400 …int32_t res = GenerateKeyAlias(&packageName, &serviceType, keyType, &(pakeParams->baseParams.idSel… in ClientRequestStandardBindExchange() 435 Uint8Buff serviceType = { (uint8_t *)pakeParams->serviceType, strlen(pakeParams->serviceType) }; in ServerResponseStandardBindExchange() local 436 …int32_t res = GenerateKeyAlias(&packageName, &serviceType, keyType, &(pakeParams->baseParams.idSel… in ServerResponseStandardBindExchange() 495 Uint8Buff serviceType = { (uint8_t *)pakeParams->serviceType, strlen(pakeParams->serviceType) }; in ClientConfirmStandardBindExchange() local 496 …int32_t res = GenerateKeyAlias(&packageName, &serviceType, keyType, &(pakeParams->baseParams.idSel… in ClientConfirmStandardBindExchange()
|
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/lite_exchange_task/ |
D | das_lite_token_manager.c | 22 static int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *aut… in UnregisterLocalIdentity() argument 27 Uint8Buff serviceTypeBuff = { (uint8_t *)serviceType, HcStrlen(serviceType) }; in UnregisterLocalIdentity() 48 static int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authIdPe… in DeletePeerAuthInfo() argument 53 Uint8Buff serviceTypeBuff = { (uint8_t *)serviceType, HcStrlen(serviceType) }; in DeletePeerAuthInfo()
|
/base/security/device_auth/services/authenticators/inc/account_unrelated/ |
D | das_task_main.h | 43 int32_t RegisterLocalIdentityInTask(const char *pkgName, const char *serviceType, Uint8Buff *authId… 44 int32_t UnregisterLocalIdentityInTask(const char *pkgName, const char *serviceType, Uint8Buff *auth… 45 int32_t DeletePeerAuthInfoInTask(const char *pkgName, const char *serviceType, Uint8Buff *authIdPee… 46 int32_t GetPublicKeyInTask(const char *pkgName, const char *serviceType, Uint8Buff *authIdPeer, int…
|
D | das_task_common.h | 28 int32_t GenerateKeyAlias(const Uint8Buff *pkgName, const Uint8Buff *serviceType, const KeyAliasType…
|
/base/security/device_auth/services/authenticators/src/account_unrelated/ |
D | das_module.c | 31 static int32_t RegisterDasLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *au… in RegisterDasLocalIdentity() argument 33 return RegisterLocalIdentityInTask(pkgName, serviceType, authId, userType); in RegisterDasLocalIdentity() 36 static int32_t UnregisterDasLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *… in UnregisterDasLocalIdentity() argument 38 return UnregisterLocalIdentityInTask(pkgName, serviceType, authId, userType); in UnregisterDasLocalIdentity() 41 static int32_t DeleteDasPeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authI… in DeleteDasPeerAuthInfo() argument 43 return DeletePeerAuthInfoInTask(pkgName, serviceType, authId, userType); in DeleteDasPeerAuthInfo() 46 static int32_t GetDasPublicKey(const char *pkgName, const char *serviceType, Uint8Buff *authId, int… in GetDasPublicKey() argument 49 return GetPublicKeyInTask(pkgName, serviceType, authId, userType, returnPk); in GetDasPublicKey()
|
D | das_task_common.c | 169 static int32_t CombineServiceId(const Uint8Buff *pkgName, const Uint8Buff *serviceType, Uint8Buff *… in CombineServiceId() argument 173 serviceIdPlain.length = pkgName->length + serviceType->length; in CombineServiceId() 187 serviceType->val, serviceType->length) != EOK) { in CombineServiceId() 300 int32_t GenerateKeyAlias(const Uint8Buff *pkgName, const Uint8Buff *serviceType, in GenerateKeyAlias() argument 305 CHECK_PTR_RETURN_ERROR_CODE(serviceType, "serviceType"); in GenerateKeyAlias() 306 CHECK_PTR_RETURN_ERROR_CODE(serviceType->val, "serviceType->val"); in GenerateKeyAlias() 311 …if (pkgName->length == 0 || serviceType->length == 0 || authId->length == 0 || outKeyAlias->length… in GenerateKeyAlias() 315 if (pkgName->length > PACKAGE_NAME_MAX_LEN || serviceType->length > SERVICE_TYPE_MAX_LEN || in GenerateKeyAlias() 329 res = CombineServiceId(pkgName, serviceType, &serviceId); in GenerateKeyAlias()
|
D | das_task_main.c | 396 int32_t RegisterLocalIdentityInTask(const char *pkgName, const char *serviceType, Uint8Buff *authId… in RegisterLocalIdentityInTask() argument 407 … res = temp->tokenManagerInstance->registerLocalIdentity(pkgName, serviceType, authId, userType); in RegisterLocalIdentityInTask() 416 int32_t UnregisterLocalIdentityInTask(const char *pkgName, const char *serviceType, Uint8Buff *auth… in UnregisterLocalIdentityInTask() argument 427 … res = temp->tokenManagerInstance->unregisterLocalIdentity(pkgName, serviceType, authId, userType); in UnregisterLocalIdentityInTask() 436 int32_t DeletePeerAuthInfoInTask(const char *pkgName, const char *serviceType, Uint8Buff *authIdPee… in DeletePeerAuthInfoInTask() argument 447 …res = temp->tokenManagerInstance->deletePeerAuthInfo(pkgName, serviceType, authIdPeer, userTypePee… in DeletePeerAuthInfoInTask() 456 int32_t GetPublicKeyInTask(const char *pkgName, const char *serviceType, Uint8Buff *authIdPeer, int… in GetPublicKeyInTask() argument 467 …return temp->tokenManagerInstance->getPublicKey(pkgName, serviceType, authIdPeer, userTypePeer, re… in GetPublicKeyInTask()
|
/base/security/device_auth/services/frameworks/src/module/ |
D | dev_auth_module_manager.c | 45 static bool IsParamsForDasTokenManagerValid(const char *pkgName, const char *serviceType, Uint8Buff… in IsParamsForDasTokenManagerValid() argument 52 if (pkgName == NULL || serviceType == NULL || authId == NULL || authId->val == NULL) { in IsParamsForDasTokenManagerValid() 57 if (HcStrlen(pkgName) == 0 || HcStrlen(serviceType) == 0 || authId->length == 0) { in IsParamsForDasTokenManagerValid() 68 int32_t RegisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, int … in RegisterLocalIdentity() argument 71 if (!IsParamsForDasTokenManagerValid(pkgName, serviceType, authId, userType, moduleType)) { in RegisterLocalIdentity() 81 int32_t res = dasModule->registerLocalIdentity(pkgName, serviceType, authId, userType); in RegisterLocalIdentity() 89 int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, in… in UnregisterLocalIdentity() argument 92 if (!IsParamsForDasTokenManagerValid(pkgName, serviceType, authId, userType, moduleType)) { in UnregisterLocalIdentity() 102 int32_t res = dasModule->unregisterLocalIdentity(pkgName, serviceType, authId, userType); in UnregisterLocalIdentity() 110 int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authId, int use… in DeletePeerAuthInfo() argument [all …]
|
/base/security/device_auth/services/frameworks/inc/module/ |
D | dev_auth_module_manager.h | 38 const char *serviceType; member 55 int32_t RegisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, int … 57 int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, in… 59 int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authId, int use…
|
/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/pake_v1_task/pake_v1_protocol_task/ |
D | pake_v1_protocol_task_common.c | 44 HcFree(params->serviceType); in DestroyDasPakeV1Params() 45 params->serviceType = NULL; in DestroyDasPakeV1Params() 140 Uint8Buff serviceType = { (uint8_t *)params->serviceType, strlen(params->serviceType) }; in FillPskWithDerivedKeyHex() local 141 …res = GenerateKeyAlias(&packageName, &serviceType, KEY_ALIAS_PSK, &(params->baseParams.idPeer), &p… in FillPskWithDerivedKeyHex()
|
/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/ |
D | pake_task_common.c | 215 const char *serviceType = GetStringFromJson(in, FIELD_SERVICE_TYPE); in FillPkgNameAndServiceType() local 216 if (serviceType == NULL) { in FillPkgNameAndServiceType() 220 params->serviceType = (char *)HcMalloc(strlen(serviceType) + 1, 0); in FillPkgNameAndServiceType() 221 if (params->serviceType == NULL) { in FillPkgNameAndServiceType() 225 …if (memcpy_s(params->serviceType, strlen(serviceType) + 1, serviceType, strlen(serviceType)) != EO… in FillPkgNameAndServiceType()
|
D | pake_message_util.c | 42 if (AddStringToJson(payload, FIELD_SERVICE_TYPE, params->serviceType) != HC_SUCCESS) { in PackagePakeRequestData()
|
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/ |
D | iso_task_common.c | 276 if (params->serviceType != NULL) { in DestroyIsoParams() 277 HcFree(params->serviceType); in DestroyIsoParams() 278 params->serviceType = NULL; in DestroyIsoParams() 348 const char *serviceType = GetStringFromJson(in, FIELD_SERVICE_TYPE); in FillPkgNameAndServiceType() local 349 if (serviceType == NULL) { in FillPkgNameAndServiceType() 353 params->serviceType = (char *)HcMalloc((uint32_t)(strlen(serviceType) + 1), 0); in FillPkgNameAndServiceType() 354 if (params->serviceType == NULL) { in FillPkgNameAndServiceType() 358 …if (memcpy_s(params->serviceType, strlen(serviceType) + 1, serviceType, strlen(serviceType)) != EO… in FillPkgNameAndServiceType() 537 … Uint8Buff serviceType = { (uint8_t *)params->serviceType, (uint32_t)strlen(params->serviceType) }; in GenerateKeyAliasInIso() local 547 return GenerateKeyAlias(&pkgName, &serviceType, KEY_ALIAS_AUTH_TOKEN, &authId, in GenerateKeyAliasInIso()
|
/base/security/device_auth/services/creds_manager/src/ |
D | creds_manager.c | 61 const char *serviceType = StringGet(&deviceEntry->serviceType); in IsP2pAuthTokenExist() local 62 Uint8Buff serviceTypeBuff = { (uint8_t *)serviceType, strlen(serviceType) }; in IsP2pAuthTokenExist() 328 const char *serviceType = StringGet(&deviceEntry->serviceType); in GenerateKeyAliasInIso() local 329 Uint8Buff serviceTypeBuff = { (uint8_t *)serviceType, (uint32_t)strlen(serviceType) }; in GenerateKeyAliasInIso() 479 const char *serviceType = StringGet(&peerDeviceEntry->serviceType); in ComputeAndSavePsk() local 480 Uint8Buff serviceTypeBuff = { (uint8_t *)serviceType, strlen(serviceType) }; in ComputeAndSavePsk() 542 const char *serviceType = StringGet(&deviceEntry->serviceType); in GeneratePskAliasAndCheckExist() local 543 Uint8Buff serviceTypeBuff = { (uint8_t *)serviceType, strlen(serviceType) }; in GeneratePskAliasAndCheckExist()
|
/base/security/device_auth/test/unittest/deviceauth/source/ |
D | standard_exchange_task_test.cpp | 73 pakeParams.serviceType = const_cast<char *>(TEST_GROUP_ID.c_str()); 125 pakeParams.serviceType = const_cast<char *>(TEST_GROUP_ID.c_str()); 147 pakeParams.serviceType = const_cast<char *>(TEST_GROUP_ID.c_str());
|
/base/security/device_auth/services/authenticators/inc/account_unrelated/pake_task/ |
D | pake_base_cur_task.h | 42 char *serviceType; member
|
/base/security/device_auth/services/authenticators/inc/account_unrelated/iso_task/ |
D | iso_base_cur_task.h | 48 char *serviceType; member
|
/base/telephony/ril_adapter/interfaces/innerkits/include/ |
D | hril_call_parcel.h | 263 int32_t serviceType = 0; member
|
D | hril_vendor_call_defs.h | 339 int32_t serviceType; member
|
/base/security/device_auth/services/data_manager/src/ |
D | data_manager.c | 64 TlvString serviceType; member 99 TLV_MEMBER(TlvString, serviceType, 0x4104) 280 if (!StringSet(&returnEntry->serviceType, entry->serviceType)) { in GenerateDeviceEntryFromEntry() 342 if (!StringSet(&deviceEntry->serviceType, device->serviceType.data)) { in GenerateDeviceEntryFromTlv() 569 if (!StringSet(&element->serviceType.data, entry->serviceType)) { in SetDeviceElement() 906 ptr->serviceType = CreateString(); in CreateDeviceEntry() 917 DeleteString(&deviceEntry->serviceType); in DestroyDeviceEntry() 1221 StringGet(&device->serviceType)); in DumpDevice()
|
/base/security/device_auth/services/data_manager/inc/ |
D | data_manager.h | 49 HcString serviceType; /* compatible with previous versions, the value is the same as groupId */ member
|
/base/security/device_auth/services/group_auth/src/group_auth_manager/ |
D | group_auth_data_operation.c | 41 if (!StringSet(&returnEntry->serviceType, entry->serviceType)) { in GaDeepCopyDeviceEntry()
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/ |
D | compatible_auth_sub_session_common.c | 103 const char *serviceType = StringGet(&(localAuthInfo->serviceType)); in AddGeneralParams() local 104 if ((groupType == COMPATIBLE_GROUP) && (serviceType != NULL)) { in AddGeneralParams() 105 if (AddStringToJson(paramsData, FIELD_SERVICE_TYPE, serviceType) != HC_SUCCESS) { in AddGeneralParams()
|
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/iso_protocol_task/ |
D | iso_client_protocol_task.c | 69 … GOTO_ERR_AND_SET_RET(AddStringToJson(payload, FIELD_SERVICE_TYPE, params->serviceType), res); in IsoClientStartPackData()
|