Home
last modified time | relevance | path

Searched refs:StoreKey (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/mock/
H A Dbase_key_mock.h30 virtual bool StoreKey(const UserAuth &auth) = 0;
31 virtual bool StoreKey(const UserAuth &auth, bool needGenerateShield) = 0;
49 MOCK_METHOD2(StoreKey, bool(const UserAuth &auth, bool needGenerateShield));
50 MOCK_METHOD1(StoreKey, bool(const UserAuth &auth));
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/
H A Dcrypto_key_test.cpp194 g_testKeyV1->StoreKey(emptyUserAuth);
316 g_testKeyV1->StoreKey(emptyUserAuth);
357 g_testKeyV1->StoreKey(emptyUserAuth);
405 g_testKeyV1->StoreKey(emptyUserAuth);
631 g_testKeyV1->StoreKey(emptyUserAuth);
663 g_testKeyV1->StoreKey(emptyUserAuth);
669 g_testKeyV1->StoreKey(emptyUserAuth);
675 g_testKeyV1->StoreKey(emptyUserAuth);
730 g_testKeyV1->StoreKey(emptyUserAuth);
736 g_testKeyV1->StoreKey(emptyUserAuth);
[all …]
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/mock/
H A Dbase_key_mock.cpp39 bool BaseKey::StoreKey(const UserAuth &auth, bool needGenerateShield) in StoreKey() function in BaseKey
44 return IBaseKeyMoc::baseKeyMoc->StoreKey(auth, needGenerateShield); in StoreKey()
47 bool BaseKey::StoreKey(const UserAuth &auth) in StoreKey() function in BaseKey
52 return IBaseKeyMoc::baseKeyMoc->StoreKey(auth); in StoreKey()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/key_manager_test/
H A Dkey_manager_test.cpp141 EXPECT_CALL(*baseKeyMock_, StoreKey(_, _)).WillOnce(Return(false));
143 EXPECT_CALL(*baseKeyMock_, StoreKey(_)).WillOnce(Return(false));
153 EXPECT_CALL(*baseKeyMock_, StoreKey(_, _)).WillOnce(Return(true));
155 EXPECT_CALL(*baseKeyMock_, StoreKey(_)).WillOnce(Return(true));
177 EXPECT_CALL(*baseKeyMock_, StoreKey(_, _)).WillOnce(Return(true));
179 EXPECT_CALL(*baseKeyMock_, StoreKey(_)).WillOnce(Return(true));
656 EXPECT_CALL(*baseKeyMock_, StoreKey(_)).WillOnce(Return(true));
681 EXPECT_CALL(*baseKeyMock_, StoreKey(_)).WillOnce(Return(true));
698 EXPECT_CALL(*baseKeyMock_, StoreKey(_)).WillOnce(Return(true));
725 EXPECT_CALL(*baseKeyMock_, StoreKey(_)).WillOnce(Return(true));
[all …]
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dbase_key.h44 bool StoreKey(const UserAuth &auth, bool needGenerateShield = true);
46 bool StoreKey(const UserAuth &auth);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dbase_key.cpp193 bool BaseKey::StoreKey(const UserAuth &auth, bool needGenerateShield) in StoreKey() function in OHOS::StorageDaemon::BaseKey
195 bool BaseKey::StoreKey(const UserAuth &auth) in StoreKey()
549 if (!StoreKey(auth)) { in StoreKey()
717 if (!StoreKey({ auth.token, auth.secret, secureUid })) { in StoreKey()
H A Dkey_manager.cpp85 if (globalEl1Key_->StoreKey(NULL_KEY_AUTH) == false) { in GenerateAndInstallDeviceKey()
206 if (elKey->StoreKey(auth) == false) { in GenerateAndInstallUserKey()
918 if (item->StoreKey(auth, needGenerateShield) == false) { in UpdateCeEceSeceUserAuth()
920 if (item->StoreKey(auth) == false) { in UpdateCeEceSeceUserAuth()
1266 if (!FileExists(NEED_UPDATE_PATH) && (elKey->StoreKey(auth) == false)) { in UpdateCeEceSeceUserAuth()