Home
last modified time | relevance | path

Searched refs:GenerateAppkey (Results 1 - 25 of 60) sorted by relevance

123

/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/mock/
H A Dfscrypt_key_v1_ext_mock.cpp73 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 Dfscrypt_key_v1_ext_mock.h36 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 Dfscrypt_key_v2_mock.h30 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 Dfbex_mock.h41 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 Dfbex_mock.cpp59 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 Dfscrypt_key_v2_mock.cpp61 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 Dkey_manager_sup_test.cpp136 * @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 Dfscrypt_key_v2.h43 bool GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId);
H A Dfscrypt_key_v1_ext.h43 bool GenerateAppkey(uint32_t userId, uint32_t appUid, std::unique_ptr<uint8_t[]> &keyId, uint32_t size);
H A Dfbex.h66 static int GenerateAppkey(UserIdToFbeStr &userIdToFbe, uint32_t hashId, std::unique_ptr<uint8_t[]> &keyId,
H A Dfscrypt_key_v1.h39 bool GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId);
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fbex_test/
H A Dfbex_test.cpp243 * @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 Dfscrypt_key_v1_test.cpp260 * @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 Dfscrypt_key_v1_ext_test.cpp209 * @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 Dfilesystem_crypto.h49 int32_t GenerateAppkey(uint32_t hashId, uint32_t userId, std::string &keyId);
/foundation/filemanagement/storage_service/services/storage_daemon/
H A Dsdc.cpp259 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 Dstorage_daemon_client.h63 static int32_t GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId);
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/
H A Dkey_manager_mock.cpp80 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 Dfscrypt_key_v1_ext.cpp102 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 Dfscrypt_key_v2.cpp145 bool FscryptKeyV2::GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId) in GenerateAppkey() function in OHOS::StorageDaemon::FscryptKeyV2
H A Dfscrypt_key_v1.cpp73 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 Dfilesystem_crypto.cpp194 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 Dstorage_daemon_stub_mock.h64 MOCK_METHOD3(GenerateAppkey, int32_t (uint32_t, uint32_t, std::string &));
H A Dstorage_daemon_service_mock.h174 virtual int32_t GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId) override
/foundation/filemanagement/storage_service/services/storage_daemon/client/
H A Dstorage_daemon_client.cpp393 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()

Completed in 10 milliseconds

123