/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fscrypt_v2_test/ |
H A D | fscrypt_key_v2_test.cpp | 82 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 D | fscrypt_key_v2_mock.h | 29 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 D | fscrypt_key_v2_mock.cpp | 22 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 D | fscrypt_key_v2.cpp | 24 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 D | key_manager.cpp | 93 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 D | fscrypt_key_v1.cpp | 32 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 D | crypto_key_test.cpp | 179 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 D | key_manager_test.cpp | 158 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 D | fscrypt_key_v2.h | 33 bool ActiveKey(uint32_t flag = 0, const std::string &mnt = MNT_DATA);
|
H A D | fscrypt_key_v1.h | 35 bool ActiveKey(uint32_t flag = 0, const std::string &mnt = MNT_DATA);
|
H A D | base_key.h | 50 virtual bool ActiveKey(uint32_t flag, const std::string &mnt = MNT_DATA) = 0;
|