/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/mock/ |
H A D | fscrypt_key_v1_ext_mock.cpp | 73 bool FscryptKeyV1Ext::GenerateAppkey(uint32_t userId, uint32_t appUid, in GenerateAppkey() function in FscryptKeyV1Ext 77 return IFscryptKeyV1Ext::fscryptKeyV1ExtMock->GenerateAppkey(userId, appUid, keyId, size); in GenerateAppkey()
|
H A D | fscrypt_key_v1_ext_mock.h | 36 virtual bool GenerateAppkey(uint32_t userId, uint32_t appUid, std::unique_ptr<uint8_t[]> &keyId, uint32_t size) = 0; 52 MOCK_METHOD4(GenerateAppkey, bool(uint32_t, uint32_t, std::unique_ptr<uint8_t[]> &, uint32_t));
|
/foundation/filemanagement/storage_service/services/storage_daemon/include/mock/ |
H A D | fscrypt_key_v2_mock.h | 30 virtual bool GenerateAppkey(uint32_t userId, uint32_t appUid, std::string &keyId) = 0; 49 MOCK_METHOD3(GenerateAppkey, bool(uint32_t userId, uint32_t appUid, std::string &keyId));
|
H A D | fbex_mock.h | 41 virtual int GenerateAppkey(UserIdToFbeStr &, uint32_t, std::unique_ptr<uint8_t[]> &, uint32_t) = 0; 61 MOCK_METHOD4(GenerateAppkey, int(UserIdToFbeStr &, uint32_t, std::unique_ptr<uint8_t[]> &, uint32_t));
|
/foundation/filemanagement/storage_service/services/storage_daemon/mock/ |
H A D | fbex_mock.cpp | 59 int FBEX::GenerateAppkey(UserIdToFbeStr &userIdToFbe, uint32_t appUid, std::unique_ptr<uint8_t[]> &appKey, in GenerateAppkey() function in FBEX 62 return IFbexMoc::fbexMoc->GenerateAppkey(userIdToFbe, appUid, appKey, size); in GenerateAppkey()
|
H A D | fscrypt_key_v2_mock.cpp | 61 bool FscryptKeyV2::GenerateAppkey(uint32_t userId, uint32_t appUid, std::string &keyId) in GenerateAppkey() function in FscryptKeyV2 66 return IFscryptKeyV2Moc::fscryptKeyV2Moc->GenerateAppkey(userId, appUid, keyId); in GenerateAppkey()
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/key_manager_test/ |
H A D | key_manager_sup_test.cpp | 136 * @tc.desc: Verify the GenerateAppkey function. 149 EXPECT_EQ(KeyManager::GetInstance()->GenerateAppkey(user, 100, keyId), -ENOTSUP); in HWTEST_F() 161 EXPECT_EQ(KeyManager::GetInstance()->GenerateAppkey(user, 100, keyId), -ENOENT); in HWTEST_F() 168 EXPECT_CALL(*fscryptKeyMock_, GenerateAppkey(_, _, _)).WillOnce(Return(false)); in HWTEST_F() 169 EXPECT_EQ(KeyManager::GetInstance()->GenerateAppkey(user, 100, keyId), -EFAULT); in HWTEST_F() 171 EXPECT_CALL(*fscryptKeyMock_, GenerateAppkey(_, _, _)).WillOnce(Return(true)); in HWTEST_F() 172 EXPECT_EQ(KeyManager::GetInstance()->GenerateAppkey(user, 100, keyId), 0); in HWTEST_F() 176 EXPECT_EQ(KeyManager::GetInstance()->GenerateAppkey(user, 100, keyId), -ENOENT); in HWTEST_F() 444 EXPECT_CALL(*fscryptKeyMock_, GenerateAppkey(_, _, _)).WillOnce(Return(false)).WillOnce(Return(true)) in HWTEST_F() 449 EXPECT_CALL(*fscryptKeyMock_, GenerateAppkey( in HWTEST_F() [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/ |
H A D | fscrypt_key_v2.h | 43 bool GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId);
|
H A D | fscrypt_key_v1_ext.h | 43 bool GenerateAppkey(uint32_t userId, uint32_t appUid, std::unique_ptr<uint8_t[]> &keyId, uint32_t size);
|
H A D | fbex.h | 66 static int GenerateAppkey(UserIdToFbeStr &userIdToFbe, uint32_t hashId, std::unique_ptr<uint8_t[]> &keyId,
|
H A D | fscrypt_key_v1.h | 39 bool GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId);
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fbex_test/ |
H A D | fbex_test.cpp | 243 * @tc.desc: Verify the fbex GenerateAppkey. 247 HWTEST_F(FbexTest, GenerateAppkey, TestSize.Level1) in HWTEST_F() 258 int ret = fbex.GenerateAppkey(userIdToFbe, appUid, keyId, size); in HWTEST_F() 264 ret = fbex.GenerateAppkey(userIdToFbe, appUid, keyId, size); in HWTEST_F() 270 ret = fbex.GenerateAppkey(userIdToFbe, appUid, keyId, size); in HWTEST_F()
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fscrypt_v1_test/ |
H A D | fscrypt_key_v1_test.cpp | 260 * @tc.desc: Verify the fscrypt V1 GenerateAppkey. 272 EXPECT_CALL(*fscryptKeyExtMock_, GenerateAppkey(_, _, _, _)).WillOnce(Return(false)); in HWTEST_F() 273 EXPECT_FALSE(g_testKeyV1->GenerateAppkey(userId, hashId, keyDesc)); in HWTEST_F() 275 EXPECT_CALL(*fscryptKeyExtMock_, GenerateAppkey(_, _, _, _)).WillOnce(Return(true)); in HWTEST_F() 276 EXPECT_TRUE(g_testKeyV1->GenerateAppkey(userId, hashId, keyDesc)); in HWTEST_F()
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fscrypt_key_v1_ext_test/ |
H A D | fscrypt_key_v1_ext_test.cpp | 209 * @tc.desc: Verify the GenerateAppkey function. 221 EXPECT_EQ(ext.GenerateAppkey(100, 100, appKey, 1), true); in HWTEST_F() 224 EXPECT_CALL(*fbexMock_, GenerateAppkey(_, _, _, _)).WillOnce(Return(0)); in HWTEST_F() 225 EXPECT_EQ(ext.GenerateAppkey(100, 100, appKey, 1), true); in HWTEST_F() 228 EXPECT_CALL(*fbexMock_, GenerateAppkey(_, _, _, _)).WillOnce(Return(1)); in HWTEST_F() 229 EXPECT_EQ(ext.GenerateAppkey(100, 100, appKey, 1), false); in HWTEST_F()
|
/foundation/filemanagement/storage_service/services/storage_manager/include/crypto/ |
H A D | filesystem_crypto.h | 49 int32_t GenerateAppkey(uint32_t hashId, uint32_t userId, std::string &keyId);
|
/foundation/filemanagement/storage_service/services/storage_daemon/ |
H A D | sdc.cpp | 259 static int32_t GenerateAppkey(const std::vector<std::string> &args) in GenerateAppkey() function 273 return OHOS::StorageDaemon::StorageDaemonClient::GenerateAppkey(userId, hashId, keyId); in GenerateAppkey() 368 {"generate_app_key", GenerateAppkey},
|
/foundation/filemanagement/storage_service/services/storage_daemon/client/include/ |
H A D | storage_daemon_client.h | 63 static int32_t GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId);
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/ |
H A D | key_manager_mock.cpp | 80 int32_t KeyManager::GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId) in GenerateAppkey() function in OHOS::StorageDaemon::KeyManager
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | fscrypt_key_v1_ext.cpp | 102 bool FscryptKeyV1Ext::GenerateAppkey(uint32_t user, uint32_t hashId, std::unique_ptr<uint8_t[]> &appKey, uint32_t size) in GenerateAppkey() function in OHOS::StorageDaemon::FscryptKeyV1Ext 111 if (FBEX::GenerateAppkey(userIdToFbe, hashId, appKey, size)) { in GenerateAppkey() 112 LOGE("GenerateAppkey failed, user %{public}d", user); in GenerateAppkey()
|
H A D | fscrypt_key_v2.cpp | 145 bool FscryptKeyV2::GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId) in GenerateAppkey() function in OHOS::StorageDaemon::FscryptKeyV2
|
H A D | fscrypt_key_v1.cpp | 73 bool FscryptKeyV1::GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyDesc) in GenerateAppkey() function in OHOS::StorageDaemon::FscryptKeyV1 76 if (!fscryptV1Ext.GenerateAppkey(userId, hashId, appKey.data, appKey.size)) { in GenerateAppkey() 77 LOGE("fscryptV1Ext GenerateAppkey failed"); in GenerateAppkey()
|
/foundation/filemanagement/storage_service/services/storage_manager/crypto/ |
H A D | filesystem_crypto.cpp | 194 int32_t FileSystemCrypto::GenerateAppkey(uint32_t hashId, uint32_t userId, std::string &keyId) in GenerateAppkey() function in OHOS::StorageManager::FileSystemCrypto 204 return sdCommunication->GenerateAppkey(userId, hashId, keyId); in GenerateAppkey()
|
/foundation/filemanagement/storage_service/services/storage_daemon/ipc/test/ |
H A D | storage_daemon_stub_mock.h | 64 MOCK_METHOD3(GenerateAppkey, int32_t (uint32_t, uint32_t, std::string &));
|
H A D | storage_daemon_service_mock.h | 174 virtual int32_t GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId) override
|
/foundation/filemanagement/storage_service/services/storage_daemon/client/ |
H A D | storage_daemon_client.cpp | 393 int32_t StorageDaemonClient::GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId) in GenerateAppkey() function in OHOS::StorageDaemon::StorageDaemonClient 406 return client->GenerateAppkey(userId, hashId, keyId); in GenerateAppkey()
|