Home
last modified time | relevance | path

Searched refs:ActiveKey (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fscrypt_v2_test/
H A Dfscrypt_key_v2_test.cpp82 EXPECT_FALSE(g_testKeyV2.ActiveKey(flag, TEST_MNT));
85 EXPECT_FALSE(g_testKeyV2.ActiveKey(flag, TEST_MNT));
90 EXPECT_FALSE(g_testKeyV2.ActiveKey(flag, emptyStr));
96 EXPECT_FALSE(g_testKeyV2.ActiveKey(flag, TEST_MNT));
102 EXPECT_FALSE(g_testKeyV2.ActiveKey(flag, TEST_MNT));
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/mock/
H A Dfscrypt_key_v2_mock.h29 virtual bool ActiveKey(uint32_t flag, const std::string &mnt) = 0;
48 MOCK_METHOD2(ActiveKey, bool(uint32_t flag, const std::string &mnt));
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/mock/
H A Dfscrypt_key_v2_mock.cpp22 bool FscryptKeyV2::ActiveKey(uint32_t flag, const std::string &mnt) in ActiveKey() function in FscryptKeyV2
27 return IFscryptKeyV2Moc::fscryptKeyV2Moc->ActiveKey(flag, mnt); in ActiveKey()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dfscrypt_key_v2.cpp24 bool FscryptKeyV2::ActiveKey(uint32_t flag, const std::string &mnt) in ActiveKey() function in OHOS::StorageDaemon::FscryptKeyV2
103 bool FscryptKeyV2::ActiveKey(uint32_t flag, const std::string &mnt)
H A Dkey_manager.cpp93 if (globalEl1Key_->ActiveKey(FIRST_CREATE_KEY) == false) { in GenerateAndInstallDeviceKey()
137 if (globalEl1Key_->ActiveKey(RETRIEVE_KEY) == false) { in RestoreDeviceKey()
211 if (elKey->ActiveKey(FIRST_CREATE_KEY) == false) { in GenerateAndInstallUserKey()
292 if (elKey->ActiveKey(RETRIEVE_KEY) == false) { in RestoreUserKey()
1270 if (elKey->ActiveKey(RETRIEVE_KEY) == false) { in UpdateCeEceSeceUserAuth()
H A Dfscrypt_key_v1.cpp32 bool FscryptKeyV1::ActiveKey(uint32_t flag, const std::string &mnt) in ActiveKey() function in OHOS::StorageDaemon::FscryptKeyV1
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/
H A Dcrypto_key_test.cpp179 EXPECT_FALSE(g_testKeyV2->ActiveKey());
231 EXPECT_FALSE(g_testKeyV1BadDir.ActiveKey());
354 EXPECT_FALSE(g_testKeyV1->ActiveKey()); // active empty key should fail
364 EXPECT_TRUE(g_testKeyV1->ActiveKey(FIRST_CREATE_KEY));
377 EXPECT_FALSE(g_testKeyV1BadLen.ActiveKey());
409 EXPECT_TRUE(g_testKeyV1->ActiveKey(FIRST_CREATE_KEY));
484 EXPECT_TRUE(g_testKeyV2->ActiveKey());
578 EXPECT_TRUE(g_testKeyV2->ActiveKey());
602 EXPECT_TRUE(g_testKeyV2->ActiveKey());
635 EXPECT_TRUE(g_testKeyV1->ActiveKey(FIRST_CREATE_KEY));
[all …]
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/key_manager_test/
H A Dkey_manager_test.cpp158 EXPECT_CALL(*fscryptKeyMock_, ActiveKey(_, _)).WillOnce(Return(false));
182 EXPECT_CALL(*fscryptKeyMock_, ActiveKey(_, _)).WillOnce(Return(true));
220 EXPECT_CALL(*fscryptKeyMock_, ActiveKey(_, _)).WillOnce(Return(false));
239 EXPECT_CALL(*fscryptKeyMock_, ActiveKey(_, _)).WillOnce(Return(true));
683 EXPECT_CALL(*fscryptKeyMock_, ActiveKey(_, _)).WillOnce(Return(true));
700 EXPECT_CALL(*fscryptKeyMock_, ActiveKey(_, _)).WillOnce(Return(true));
727 EXPECT_CALL(*fscryptKeyMock_, ActiveKey(_, _)).WillOnce(Return(true));
742 EXPECT_CALL(*fscryptKeyMock_, ActiveKey(_, _)).WillOnce(Return(true));
800 EXPECT_CALL(*fscryptKeyMock_, ActiveKey(_, _)).WillOnce(Return(true));
812 EXPECT_CALL(*fscryptKeyMock_, ActiveKey(_, _)).WillOnce(Return(true));
[all …]
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dfscrypt_key_v2.h33 bool ActiveKey(uint32_t flag = 0, const std::string &mnt = MNT_DATA);
H A Dfscrypt_key_v1.h35 bool ActiveKey(uint32_t flag = 0, const std::string &mnt = MNT_DATA);
H A Dbase_key.h50 virtual bool ActiveKey(uint32_t flag, const std::string &mnt = MNT_DATA) = 0;