/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_manager.c | 66 if (auth == NULL) { in NewAuthManager() 74 if (strcpy_s(auth->udid, sizeof(auth->udid), info->udid) != EOK || in NewAuthManager() 75 strcpy_s(auth->uuid, sizeof(auth->uuid), info->uuid) != EOK) { in NewAuthManager() 91 anonyUuid, GetAuthSideStr(auth->isServer), auth->authId); in NewAuthManager() 93 return auth; in NewAuthManager() 117 SoftBusFree(auth); in DelDupAuthManager() 515 …if (auth[i] != NULL && auth[i]->lastVerifyTime > latestVerifyTime && auth[i]->hasAuthPassed[connIn… in GetLatestIdByConnInfo() 580 for (uint32_t i = 0; i < sizeof(auth) / sizeof(auth[0]); i++) { in GetActiveAuthIdByConnInfo() 633 return auth; in GetExistAuthManager() 677 return auth; in GetDeviceAuthManager() [all …]
|
H A D | auth_device.c | 185 if (auth == NULL) { in AuthDevicePostTransData() 222 if (auth == NULL) { in AuthDeviceEncrypt() 245 if (auth == NULL) { in AuthDeviceDecrypt() 270 if (auth == NULL) { in AuthDeviceGetConnInfo() 285 if (auth == NULL) { in AuthDeviceGetServerSide() 300 if (auth == NULL) { in AuthDeviceGetDeviceUuid() 319 if (auth == NULL) { in AuthDeviceGetVersion() 354 if (auth == NULL) { in AuthNotifyDeviceVerifyPassed() 518 if (auth == NULL) { in AuthDirectOnlineCreateAuthManager() 527 isNewCreated, auth->authId, authSeq, auth->lastVerifyTime); in AuthDirectOnlineCreateAuthManager() [all …]
|
H A D | auth_interface.c | 231 if (auth == NULL) { in AuthCheckSessionKeyValidByAuthHandle() 266 if (auth != NULL) { in AuthPostTransData() 280 if (auth != NULL) { in AuthCloseConn() 460 if (auth == NULL) { in AuthDirectOnlineProcessSessionKey() 478 if (auth == NULL) { in AuthDirectOnlineWithoutSessionKey() 537 if (auth != NULL) { in AuthEncrypt() 552 if (auth != NULL) { in AuthDecrypt() 562 if (auth != NULL) { in AuthSetP2pMac() 576 if (auth != NULL) { in AuthGetConnInfo() 586 if (auth != NULL) { in AuthGetDeviceUuid() [all …]
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/ |
H A D | base_key.h | 44 bool StoreKey(const UserAuth &auth, bool needGenerateShield = true); 46 bool StoreKey(const UserAuth &auth); 49 bool RestoreKey(const UserAuth &auth, bool needSyncCandidate = true); 63 bool DoRestoreKeyEx(const UserAuth &auth, const std::string &keypath); 89 bool DoStoreKey(const UserAuth &auth, bool needGenerateShield = true); 91 bool DoStoreKey(const UserAuth &auth); 96 bool DoRestoreKey(const UserAuth &auth, const std::string &keypath); 98 bool DoRestoreKeyDe(const UserAuth &auth, const std::string &path); 99 bool DoRestoreKeyOld(const UserAuth &auth, const std::string &keypath); 104 bool EncryptDe(const UserAuth &auth, const std::string &path); [all …]
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | base_key.cpp | 203 if (DoStoreKey(auth)) { in StoreKey() 244 if ((auth.token.IsEmpty() && auth.secret.IsEmpty()) || // Create user/Delete pincode(EL2-4) in StoreKey() 459 UserAuth mUserAuth = auth; in StoreKey() 460 if (auth.secret.IsEmpty()) { in StoreKey() 549 if (!StoreKey(auth)) { in StoreKey() 594 return Decrypt(auth); in StoreKey() 627 if ((auth.secret.IsEmpty() && auth.token.IsEmpty()) || in StoreKey() 628 (!auth.secret.IsEmpty() && !auth.token.IsEmpty())) { in StoreKey() 652 if (auth.secret.IsEmpty() && !auth.token.IsEmpty()) { in StoreKey() 717 if (!StoreKey({ auth.token, auth.secret, secureUid })) { in StoreKey() [all …]
|
H A D | huks_master.cpp | 356 if (auth.secret.IsEmpty() || auth.token.IsEmpty()) { in AppendSecureAccessParams() 368 …{ .tag = HKS_TAG_USER_AUTH_SECURE_UID, .blob = { sizeof(auth.secureUid), (uint8_t *)&auth.secureUi… in AppendSecureAccessParams() 406 ret = AppendSecureAccessParams(auth, paramSet); in GenerateKey() 492 if (auth.secret.IsEmpty() || auth.token.IsEmpty()) { in AppendNonceAadTokenEx() 504 { .tag = HKS_TAG_AUTH_TOKEN, .blob = { auth.token.size, auth.token.data.get() } } in AppendNonceAadTokenEx() 517 …LOGI("secret/token is empty : %{public}d / %{public}d", auth.secret.IsEmpty(), auth.token.IsEmpty(… in AppendNewNonceAadToken() 518 if (auth.secret.IsEmpty() && auth.token.IsEmpty()) { in AppendNewNonceAadToken() 525 { .tag = HKS_TAG_AUTH_TOKEN, .blob = {auth.token.size, auth.token.data.get() } } in AppendNewNonceAadToken() 532 if (auth.secret.IsEmpty() || auth.token.IsEmpty()) { in AppendNonceAadToken() 553 { auth.token.size, auth.token.data.get() } in AppendNonceAadToken() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_lane_test.cpp | 285 EXPECT_TRUE(auth != nullptr); 287 auth->authId = 1; 288 auth->lastVerifyTime = 1; 417 auth->authId = 1; 418 auth->lastVerifyTime = 1; 463 auth->authId = 1; 464 auth->lastVerifyTime = 1; 510 auth->authId = 1; 511 auth->lastVerifyTime = 1; 553 auth->authId = 1; [all …]
|
H A D | auth_manager_test.cpp | 130 EXPECT_TRUE(auth != nullptr); 190 EXPECT_TRUE(auth == nullptr); 227 EXPECT_TRUE(auth != nullptr); 230 DelDupAuthManager(auth); 260 auth->hasAuthPassed[AUTH_LINK_TYPE_BLE] = true; 288 auth->hasAuthPassed[AUTH_LINK_TYPE_BLE] = true; 592 EXPECT_TRUE(auth != nullptr); 735 EXPECT_TRUE(auth != nullptr); 763 EXPECT_TRUE(auth != nullptr); 925 EXPECT_TRUE(auth != nullptr); [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-user-authentication-kit/ |
H A D | js-apis-useriam-userauth.md | 712 auth.on('result', { 720 auth.start(); 729 auth.on('tip', { 741 auth.start(); 795 auth.on('result', { 804 auth.on('tip', { 816 auth.start(); 860 auth.on('result', { 869 auth.off('result'); 920 auth.start(); [all …]
|
/ohos5.0/base/useriam/user_auth_framework/ |
H A D | hisysevent.yaml | 25 AUTH_TYPE: {type: INT32, desc: auth type} 34 AUTH_TYPE: {type: INT32, desc: auth type} 50 AUTH_TRUST_LEVEL: {type: UINT32, desc: auth trust level} 51 AUTH_TYPE: {type: INT32, desc: auth type} 52 AUTH_RESULT: {type: INT32, desc: auth result} 53 AUTH_TIME_SPAN: {type: UINT64, desc: auth time span} 54 AUTH_WIDGET_TYPE: {type: UINT32, desc: auth widget auth type and window mode} 63 AUTH_CONTEXTID: {type: UINT64, desc: auth context id} 65 AUTH_TYPE: {type: INT32, desc: auth type} 66 AUTH_RESULT: {type: INT32, desc: auth result} [all …]
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/mock/ |
H A D | base_key_mock.cpp | 39 bool BaseKey::StoreKey(const UserAuth &auth, bool needGenerateShield) in StoreKey() argument 44 return IBaseKeyMoc::baseKeyMoc->StoreKey(auth, needGenerateShield); in StoreKey() 47 bool BaseKey::StoreKey(const UserAuth &auth) in StoreKey() argument 52 return IBaseKeyMoc::baseKeyMoc->StoreKey(auth); in StoreKey() 72 bool BaseKey::RestoreKey(const UserAuth &auth, bool needSyncCandidate) in RestoreKey() argument 77 return IBaseKeyMoc::baseKeyMoc->RestoreKey(auth); in RestoreKey() 88 bool BaseKey::DecryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, in DecryptKeyBlob() argument 94 return IBaseKeyMoc::baseKeyMoc->DecryptKeyBlob(auth, keyPath, planKey, decryptedKey); in DecryptKeyBlob() 97 bool BaseKey::EncryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, in EncryptKeyBlob() argument 103 return IBaseKeyMoc::baseKeyMoc->EncryptKeyBlob(auth, keyPath, planKey, encryptedKey); in EncryptKeyBlob()
|
/ohos5.0/base/useriam/user_auth_framework/services/context/src/ |
H A D | context_factory.cpp | 39 auto auth = Common::MakeShared<AuthenticationImpl>(newContextId, para); in CreateSimpleAuthContext() local 40 IF_FALSE_LOGE_AND_RETURN_VAL(auth != nullptr, nullptr); in CreateSimpleAuthContext() 41 auth->SetChallenge(para.challenge); in CreateSimpleAuthContext() 42 auth->SetAccessTokenId(para.tokenId); in CreateSimpleAuthContext() 43 auth->SetEndAfterFirstFail(para.endAfterFirstFail); in CreateSimpleAuthContext() 44 return Common::MakeShared<SimpleAuthContext>(newContextId, auth, callback); in CreateSimpleAuthContext() 92 auto auth = Common::MakeShared<AuthenticationImpl>(newContextId, para); in CreateRemoteAuthContext() local 93 IF_FALSE_LOGE_AND_RETURN_VAL(auth != nullptr, nullptr); in CreateRemoteAuthContext() 94 auth->SetChallenge(para.challenge); in CreateRemoteAuthContext() 95 auth->SetAccessTokenId(para.tokenId); in CreateRemoteAuthContext() [all …]
|
/ohos5.0/drivers/interface/pin_auth/v1_1/ |
H A D | PinAuthTypes.idl | 20 * @brief Provides APIs for the pin auth driver. 22 …* The pin auth driver provides a unified interface for the pin auth service to access the pin auth… 23 * After obtaining the pin auth driver proxy, the service can call related APIs to obtain executors. 24 …* After obtaining the pin auth executors, the service can call related APIs to get executor inform… 33 …* @brief Defines the enumeration and data structure of the pin auth driver, including AuthType, Ex… 48 /**< Indicates that the property to get is auth sub type. */ 63 /**< Indicates auth sub type. */
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/pin_auth_v1_1/foo/pin_auth/v1_1/ |
H A D | PinAuthTypes.idl | 20 * @brief Provides APIs for the pin auth driver. 22 …* The pin auth driver provides a unified interface for the pin auth service to access the pin auth… 23 * After obtaining the pin auth driver proxy, the service can call related APIs to obtain executors. 24 …* After obtaining the pin auth executors, the service can call related APIs to get executor inform… 33 …* @brief Defines the enumeration and data structure of the pin auth driver, including AuthType, Ex… 48 /**< Indicates that the property to get is auth sub type. */ 63 /**< Indicates auth sub type. */
|
/ohos5.0/drivers/interface/face_auth/v1_0/ |
H A D | IFaceAuthInterface.idl | 20 * @brief Provides APIs for the face auth driver. 22 …* The face auth driver provides a unified interface for the face auth service to access the face a… 23 …* After obtaining the face auth driver proxy, the service can call related APIs to obtain executor… 24 …* After obtaining the face auth executors, the service can call related APIs to get executor infor… 33 * @brief Defines the API for getting the executor list of the face auth driver. 43 * @brief Defines the API for getting the executor list of the face auth driver.
|
/ohos5.0/drivers/interface/face_auth/v1_1/ |
H A D | IFaceAuthInterface.idl | 20 * @brief Provides APIs for the face auth driver. 22 …* The face auth driver provides a unified interface for the face auth service to access the face a… 23 …* After obtaining the face auth driver proxy, the service can call related APIs to obtain executor… 24 …* After obtaining the face auth executors, the service can call related APIs to get executor infor… 33 * @brief Defines the API for getting the executor list of the face auth driver. 44 * @brief Defines the API for getting the executor list of the face auth driver.
|
/ohos5.0/drivers/interface/fingerprint_auth/v1_0/ |
H A D | IFingerprintAuthInterface.idl | 20 * @brief Provides APIs for the fingerprint auth driver. 22 …* The fingerprint auth driver provides a unified interface for the fingerprint auth service to acc… 23 …* After obtaining the fingerprint auth driver proxy, the service can call related APIs to obtain e… 24 …* After obtaining the fingerprint auth executors, the service can call related APIs to get executo… 33 …* @brief Defines the get executor list API of the fingerprint auth driver. This API can be used to… 44 * @brief Defines the get executor list API of the fingerprint auth driver.
|
/ohos5.0/drivers/interface/fingerprint_auth/v2_0/ |
H A D | IFingerprintAuthInterface.idl | 20 * @brief Provides APIs for the fingerprint auth driver. 22 …* The fingerprint auth driver provides a unified interface for the fingerprint auth service to acc… 23 …* After obtaining the fingerprint auth driver proxy, the service can call related APIs to obtain e… 24 …* After obtaining the fingerprint auth executors, the service can call related APIs to get executo… 33 * @brief Defines the API for getting the executor list of the fingerprint auth driver. 43 * @brief Defines the API for getting the executor list of the fingerprint auth driver.
|
/ohos5.0/drivers/interface/pin_auth/v1_0/ |
H A D | IPinAuthInterface.idl | 20 * @brief Provides APIs for the pin auth driver. 22 …* The pin auth driver provides a unified interface for the pin auth service to access the pin auth… 23 * After obtaining the pin auth driver proxy, the service can call related APIs to obtain executors. 24 …* After obtaining the pin auth executors, the service can call related APIs to get executor inform… 33 * @brief Defines the API for getting the executor list of the pin auth driver. 44 * @brief Defines the API for getting the executor list of the pin auth driver.
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/face_auth_v1_0/foo/face_auth/v1_0/ |
H A D | IFaceAuthInterface.idl | 20 * @brief Provides APIs for the face auth driver. 22 …* The face auth driver provides a unified interface for the face auth service to access the face a… 23 …* After obtaining the face auth driver proxy, the service can call related APIs to obtain executor… 24 …* After obtaining the face auth executors, the service can call related APIs to get executor infor… 33 * @brief Defines the API for getting the executor list of the face auth driver. 43 * @brief Defines the API for getting the executor list of the face auth driver.
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/face_auth_v1_1/foo/face_auth/v1_0/ |
H A D | IFaceAuthInterface.idl | 20 * @brief Provides APIs for the face auth driver. 22 …* The face auth driver provides a unified interface for the face auth service to access the face a… 23 …* After obtaining the face auth driver proxy, the service can call related APIs to obtain executor… 24 …* After obtaining the face auth executors, the service can call related APIs to get executor infor… 33 * @brief Defines the API for getting the executor list of the face auth driver. 43 * @brief Defines the API for getting the executor list of the face auth driver.
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/face_auth_v1_1/foo/face_auth/v1_1/ |
H A D | IFaceAuthInterface.idl | 20 * @brief Provides APIs for the face auth driver. 22 …* The face auth driver provides a unified interface for the face auth service to access the face a… 23 …* After obtaining the face auth driver proxy, the service can call related APIs to obtain executor… 24 …* After obtaining the face auth executors, the service can call related APIs to get executor infor… 33 * @brief Defines the API for getting the executor list of the face auth driver. 44 * @brief Defines the API for getting the executor list of the face auth driver.
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/fingerprint_auth_v1_0/foo/fingerprint_auth/v1_0/ |
H A D | IFingerprintAuthInterface.idl | 20 * @brief Provides APIs for the fingerprint auth driver. 22 …* The fingerprint auth driver provides a unified interface for the fingerprint auth service to acc… 23 …* After obtaining the fingerprint auth driver proxy, the service can call related APIs to obtain e… 24 …* After obtaining the fingerprint auth executors, the service can call related APIs to get executo… 33 …* @brief Defines the get executor list API of the fingerprint auth driver. This API can be used to… 44 * @brief Defines the get executor list API of the fingerprint auth driver.
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/fingerprint_auth_v1_1/foo/fingerprint_auth/v1_0/ |
H A D | IFingerprintAuthInterface.idl | 20 * @brief Provides APIs for the fingerprint auth driver. 22 …* The fingerprint auth driver provides a unified interface for the fingerprint auth service to acc… 23 …* After obtaining the fingerprint auth driver proxy, the service can call related APIs to obtain e… 24 …* After obtaining the fingerprint auth executors, the service can call related APIs to get executo… 33 …* @brief Defines the get executor list API of the fingerprint auth driver. This API can be used to… 44 * @brief Defines the get executor list API of the fingerprint auth driver.
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/pin_auth_v1_0/foo/pin_auth/v1_0/ |
H A D | IPinAuthInterface.idl | 20 * @brief Provides APIs for the pin auth driver. 22 …* The pin auth driver provides a unified interface for the pin auth service to access the pin auth… 23 * After obtaining the pin auth driver proxy, the service can call related APIs to obtain executors. 24 …* After obtaining the pin auth executors, the service can call related APIs to get executor inform… 33 * @brief Defines the API for getting the executor list of the pin auth driver. 44 * @brief Defines the API for getting the executor list of the pin auth driver.
|