Home
last modified time | relevance | path

Searched refs:authIdBuff (Results 1 - 18 of 18) sorted by relevance

/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/creds_manager/
H A Ddas_lite_token_manager.c29 Uint8Buff authIdBuff = { params->authId.val, params->authId.length }; in UnregisterLocalIdentityLite() local
30 int32_t res = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, KEY_ALIAS_AUTH_TOKEN, &authIdBuff, in UnregisterLocalIdentityLite()
57 Uint8Buff authIdBuff = { params->authId.val, params->authId.length }; in DeletePeerAuthInfoLite() local
58 int32_t res = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, KEY_ALIAS_AUTH_TOKEN, &authIdBuff, in DeletePeerAuthInfoLite()
78 res = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, params->userType, &authIdBuff, &isoUpgradeKeyAliasBuff); in DeletePeerAuthInfoLite()
H A Ddas_standard_token_manager.c28 Uint8Buff authIdBuff = { params->authId.val, params->authId.length }; in RegisterLocalIdentityStd() local
29 int32_t res = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, keyType, &authIdBuff, &keyAliasBuff); in RegisterLocalIdentityStd()
42 ExtraInfo exInfo = { authIdBuff, -1, -1 }; /* UserType and pairType are not required when generating key. */ in RegisterLocalIdentityStd()
61 Uint8Buff authIdBuff = { params->authId.val, params->authId.length }; in UnregisterLocalIdentityStd() local
62 int32_t res = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, keyType, &authIdBuff, &pakeKeyAliasBuff); in UnregisterLocalIdentityStd()
81 res = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, KEY_ALIAS_LT_KEY_PAIR, &authIdBuff, &pakeKeyAliasBuff); in UnregisterLocalIdentityStd()
206 Uint8Buff authIdBuff = { params->authId.val, params->authId.length }; in DeletePeerAuthInfoStd() local
207 int32_t res = DeletePeerPubKey(params->osAccountId, &pkgNameBuff, &serviceTypeBuff, keyType, &authIdBuff); in DeletePeerAuthInfoStd()
212 res = DeleteAuthPsk(params->osAccountId, &pkgNameBuff, &serviceTypeBuff, &authIdBuff); in DeletePeerAuthInfoStd()
218 return DeletePseudonymPskStd(params->osAccountId, &serviceTypeBuff, &authIdBuff); in DeletePeerAuthInfoStd()
378 Uint8Buff authIdBuff = { params->authId.val, params->authId.length }; GetPublicKeyStd() local
[all...]
/base/security/device_auth/services/identity_manager/src/
H A Dcredential_operator.c162 Uint8Buff authIdBuff = { NULL, HcStrlen(authId) }; in GenerateKeyAliasInner() local
163 authIdBuff.val = (uint8_t *)HcMalloc(authIdBuff.length, 0); in GenerateKeyAliasInner()
164 if (authIdBuff.val == NULL) { in GenerateKeyAliasInner()
165 LOGE("Failed to allocate authIdBuff memory!"); in GenerateKeyAliasInner()
168 if (memcpy_s(authIdBuff.val, authIdBuff.length, authId, authIdBuff.length) != EOK) { in GenerateKeyAliasInner()
170 HcFree(authIdBuff.val); in GenerateKeyAliasInner()
174 authIdBuff in GenerateKeyAliasInner()
320 Uint8Buff authIdBuff = { (uint8_t *)authId, HcStrlen(authId) }; PackPublicKeyToJson() local
447 Uint8Buff authIdBuff = { (uint8_t *)param->deviceId, HcStrlen(param->deviceId) }; RegisterIdentity() local
619 UnregisterIdentity(const CredentialRequestParamT *param, const Uint8Buff *authIdBuff, int32_t keyType) UnregisterIdentity() argument
652 Uint8Buff authIdBuff = { (uint8_t *)param->deviceId, HcStrlen(param->deviceId) }; ImportCredential() local
706 Uint8Buff authIdBuff = { (uint8_t *)param->deviceId, HcStrlen(param->deviceId) }; DeleteCredential() local
[all...]
H A Didentity_group.c553 int32_t osAccountId, const char *groupId, Uint8Buff *authIdBuff, int32_t *userType, int32_t *upgradeFlag) in GetSelfAuthIdAndUserType()
568 authIdBuff->val = (uint8_t *)HcMalloc(authIdLen + 1, 0); in GetSelfAuthIdAndUserType()
569 if (authIdBuff->val == NULL) { in GetSelfAuthIdAndUserType()
574 if (memcpy_s(authIdBuff->val, authIdLen + 1, selfAuthId, authIdLen) != EOK) { in GetSelfAuthIdAndUserType()
576 HcFree(authIdBuff->val); in GetSelfAuthIdAndUserType()
577 authIdBuff->val = NULL; in GetSelfAuthIdAndUserType()
581 authIdBuff->length = authIdLen; in GetSelfAuthIdAndUserType()
552 GetSelfAuthIdAndUserType( int32_t osAccountId, const char *groupId, Uint8Buff *authIdBuff, int32_t *userType, int32_t *upgradeFlag) GetSelfAuthIdAndUserType() argument
/base/security/device_auth/services/session_manager/src/session/v2/
H A Ddev_session_util.c257 Uint8Buff authIdBuff = { (uint8_t *)peerAuthId, HcStrlen(peerAuthId) + 1 }; in FillPeerAuthIdIfNeeded() local
259 if (AddByteToJson(authData, FIELD_AUTH_ID_SERVER, authIdBuff.val, authIdBuff.length) != HC_SUCCESS) { in FillPeerAuthIdIfNeeded()
266 if (AddByteToJson(authData, FIELD_AUTH_ID_CLIENT, authIdBuff.val, authIdBuff.length) != HC_SUCCESS) { in FillPeerAuthIdIfNeeded()
375 Uint8Buff authIdBuff = { authId, AUTH_ID_LEN }; in ReplaceAuthIdWithRandom() local
376 int32_t res = GetLoaderInstance()->generateRandom(&authIdBuff); in ReplaceAuthIdWithRandom()
382 AddByteToJson(authData, FIELD_AUTH_ID_CLIENT, authIdBuff.val, authIdBuff.length) != HC_SUCCESS) { in ReplaceAuthIdWithRandom()
387 AddByteToJson(authData, FIELD_AUTH_ID_SERVER, authIdBuff in ReplaceAuthIdWithRandom()
[all...]
H A Ddev_session_v2.c1000 Uint8Buff authIdBuff = { (uint8_t *)authId, HcStrlen(authId) + 1 }; in CreateIsoSubSession() local
1001 IsoInitParams params = { authIdBuff, osAccountId }; in CreateIsoSubSession()
1077 Uint8Buff authIdBuff = { (uint8_t *)authId, HcStrlen(authId) + 1 }; in CreateEcSpekeSubSession() local
1078 EcSpekeInitParams params = { curveType, authIdBuff, osAccountId }; in CreateEcSpekeSubSession()
/base/security/device_auth/test/unittest/deviceauth/source/
H A Ddeviceauth_interface_test.cpp556 Uint8Buff authIdBuff = { (uint8_t *)TEST_AUTH_ID, strlen(TEST_AUTH_ID) }; in HWTEST_F() local
557 params.authId = &authIdBuff; in HWTEST_F()
882 Uint8Buff authIdBuff = { (uint8_t *)TEST_AUTH_ID, strlen(TEST_AUTH_ID) }; in HWTEST_F() local
887 .authId = authIdBuff, in HWTEST_F()
1103 Uint8Buff authIdBuff = { (uint8_t *)TEST_AUTH_ID, 0 }; in HWTEST_F() local
1106 int32_t res = GeneratePseudonymPskAlias(&serviceTypeBuff, &authIdBuff, &outKeyAliasBuff); in HWTEST_F()
1109 res = GeneratePseudonymPskAlias(&serviceTypeBuff, &authIdBuff, &outKeyAliasBuff); in HWTEST_F()
1111 authIdBuff.length = HcStrlen(TEST_AUTH_ID); in HWTEST_F()
1112 res = GeneratePseudonymPskAlias(&serviceTypeBuff, &authIdBuff, &outKeyAliasBuff); in HWTEST_F()
1116 (void)GeneratePseudonymPskAlias(&serviceTypeBuff, &authIdBuff, in HWTEST_F()
[all...]
H A Ddeviceauth_func_test.cpp932 Uint8Buff authIdBuff = { reinterpret_cast<uint8_t *>(&authId), sizeof(int32_t)}; in GenerateTempKeyPair() local
933 ExtraInfo extInfo = {authIdBuff, -1, -1}; in GenerateTempKeyPair()
H A Ddeviceauth_standard_auth_test.cpp235 Uint8Buff authIdBuff = { reinterpret_cast<uint8_t *>(&authId), sizeof(int32_t)}; in GenerateTempKeyPair() local
236 ExtraInfo extInfo = {authIdBuff, -1, -1}; in GenerateTempKeyPair()
H A Ddeviceauth_standard_test.cpp162 Uint8Buff authIdBuff = { reinterpret_cast<uint8_t *>(&authId), sizeof(int32_t)}; in GenerateTempKeyPair() local
163 ExtraInfo extInfo = {authIdBuff, -1, -1}; in GenerateTempKeyPair()
/base/security/device_auth/services/legacy/group_manager/src/group_operation/group_operation_common/
H A Dgroup_operation_common.c1017 Uint8Buff authIdBuff = { 0, 0 }; in ProcessKeyPair() local
1018 authIdBuff.length = HcStrlen(authId); in ProcessKeyPair()
1019 if (authIdBuff.length > MAX_DATA_BUFFER_SIZE) { in ProcessKeyPair()
1023 authIdBuff.val = (uint8_t *)HcMalloc(authIdBuff.length, 0); in ProcessKeyPair()
1024 if (authIdBuff.val == NULL) { in ProcessKeyPair()
1025 LOGE("Failed to allocate authIdBuff memory!"); in ProcessKeyPair()
1028 if (memcpy_s(authIdBuff.val, authIdBuff.length, authId, authIdBuff in ProcessKeyPair()
[all...]
/base/security/device_auth/services/legacy/group_manager/src/group_operation/
H A Dgroup_operation.c226 Uint8Buff authIdBuff = { 0, 0 }; in GetPkByParams() local
227 authIdBuff.length = HcStrlen(authId); in GetPkByParams()
228 authIdBuff.val = (uint8_t *)HcMalloc(authIdBuff.length, 0); in GetPkByParams()
229 if (authIdBuff.val == NULL) { in GetPkByParams()
230 LOGE("Failed to allocate authIdBuff memory!"); in GetPkByParams()
233 if (memcpy_s(authIdBuff.val, authIdBuff.length, authId, authIdBuff.length) != HC_SUCCESS) { in GetPkByParams()
235 HcFree(authIdBuff in GetPkByParams()
[all...]
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/frameworks/os_account_adapter/
H A Dos_account_adapter_test.cpp145 Uint8Buff authIdBuff = { reinterpret_cast<uint8_t *>(&authId), sizeof(int32_t) }; in GenerateTempKeyPair() local
146 ExtraInfo extInfo = { authIdBuff, -1, -1 }; in GenerateTempKeyPair()
/base/security/device_auth/services/mk_agree/src/
H A Dkey_manager.c181 Uint8Buff authIdBuff = { (uint8_t *)selfUdid, HcStrlen(selfUdid) }; in GenerateDeviceKeyPair() local
182 ExtraInfo exInfo = { authIdBuff, -1, -1 }; in GenerateDeviceKeyPair()
/base/security/device_auth/services/legacy/authenticators/src/account_related/creds_manager/
H A Dasy_token_manager.c422 Uint8Buff authIdBuff = { (uint8_t *)&authId, sizeof(int32_t) }; in ImportServerPk() local
423 ExtraInfo extInfo = { authIdBuff, -1, -1 }; in ImportServerPk()
807 Uint8Buff authIdBuff = { (uint8_t *)&authId, sizeof(int32_t) }; in DoGenerateAndExportPk() local
808 ExtraInfo extInfo = { authIdBuff, -1, -1 }; in DoGenerateAndExportPk()
/base/security/device_auth/test/fuzztest/devauthfunc_fuzzer/
H A Ddevauthfunc_fuzzer.cpp238 Uint8Buff authIdBuff = { reinterpret_cast<uint8_t *>(&authId), sizeof(int32_t)}; in GenerateTempKeyPair() local
239 ExtraInfo extInfo = {authIdBuff, -1, -1}; in GenerateTempKeyPair()
/base/security/device_auth/test/fuzztest/creds_manager/credsmanager_fuzzer/
H A Dcredsmanager_fuzzer.cpp293 Uint8Buff authIdBuff = { reinterpret_cast<uint8_t *>(&authId), sizeof(int32_t) }; in GenerateTempKeyPair() local
294 ExtraInfo extInfo = { authIdBuff, -1, -1 }; in GenerateTempKeyPair()
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/creds_manager/
H A Dcreds_manager_test.cpp293 Uint8Buff authIdBuff = { reinterpret_cast<uint8_t *>(&authId), sizeof(int32_t) }; in GenerateTempKeyPair() local
294 ExtraInfo extInfo = { authIdBuff, -1, -1 }; in GenerateTempKeyPair()

Completed in 33 milliseconds