Home
last modified time | relevance | path

Searched refs:GenerateAppkey (Results 1 – 25 of 57) sorted by relevance

123

/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/key_manager_test/
H A Dkey_manager_sup_test.cpp139 EXPECT_EQ(KeyManager::GetInstance()->GenerateAppkey(user, 100, keyId), -ENOTSUP);
149 EXPECT_EQ(KeyManager::GetInstance()->GenerateAppkey(user, 100, keyId), -ENOENT);
153 EXPECT_CALL(*fscryptKeyMock_, GenerateAppkey(_, _, _)).WillOnce(Return(false));
154 EXPECT_EQ(KeyManager::GetInstance()->GenerateAppkey(user, 100, keyId), -EFAULT);
158 EXPECT_CALL(*fscryptKeyMock_, GenerateAppkey(_, _, _)).WillOnce(Return(true));
159 EXPECT_EQ(KeyManager::GetInstance()->GenerateAppkey(user, 100, keyId), 0);
188 EXPECT_EQ(KeyManager::GetInstance()->GenerateAppkey(user, 100, keyId), -ENOENT);
192 EXPECT_CALL(*fscryptKeyMock_, GenerateAppkey(_, _, _)).WillOnce(Return(false));
193 EXPECT_EQ(KeyManager::GetInstance()->GenerateAppkey(user, 100, keyId), -EFAULT);
196 EXPECT_CALL(*fscryptKeyMock_, GenerateAppkey(_, _, _)).WillOnce(Return(true));
[all …]
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/mock/
H A Dfscrypt_key_v1_ext_mock.h36 …virtual bool GenerateAppkey(uint32_t userId, uint32_t appUid, std::unique_ptr<uint8_t[]> &keyId, u…
52 MOCK_METHOD4(GenerateAppkey, bool(uint32_t, uint32_t, std::unique_ptr<uint8_t[]> &, uint32_t));
H A Dfscrypt_key_v1_ext_mock.cpp74 bool FscryptKeyV1Ext::GenerateAppkey(uint32_t userId, uint32_t appUid, in GenerateAppkey() function in FscryptKeyV1Ext
78 return IFscryptKeyV1Ext::fscryptKeyV1ExtMock->GenerateAppkey(userId, appUid, keyId, size); in GenerateAppkey()
/ohos5.0/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.h42 …virtual int GenerateAppkey(UserIdToFbeStr &, uint32_t, std::unique_ptr<uint8_t[]> &, uint32_t) = 0;
63 …MOCK_METHOD4(GenerateAppkey, int(UserIdToFbeStr &, uint32_t, std::unique_ptr<uint8_t[]> &, uint32_…
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/mock/
H A Dfscrypt_key_v2_mock.cpp62 bool FscryptKeyV2::GenerateAppkey(uint32_t userId, uint32_t appUid, std::string &keyId) in GenerateAppkey() function in FscryptKeyV2
67 return IFscryptKeyV2Moc::fscryptKeyV2Moc->GenerateAppkey(userId, appUid, keyId); in GenerateAppkey()
H A Dfbex_mock.cpp65 int FBEX::GenerateAppkey(UserIdToFbeStr &userIdToFbe, uint32_t appUid, std::unique_ptr<uint8_t[]> &… in GenerateAppkey() function in FBEX
68 return IFbexMoc::fbexMoc->GenerateAppkey(userIdToFbe, appUid, appKey, size); in GenerateAppkey()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fscrypt_key_v1_ext_test/
H A Dfscrypt_key_v1_ext_test.cpp221 EXPECT_EQ(ext.GenerateAppkey(100, 100, appKey, 1), true);
224 EXPECT_CALL(*fbexMock_, GenerateAppkey(_, _, _, _)).WillOnce(Return(0));
225 EXPECT_EQ(ext.GenerateAppkey(100, 100, appKey, 1), true);
228 EXPECT_CALL(*fbexMock_, GenerateAppkey(_, _, _, _)).WillOnce(Return(1));
229 EXPECT_EQ(ext.GenerateAppkey(100, 100, appKey, 1), false);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fbex_test/
H A Dfbex_test.cpp247 HWTEST_F(FbexTest, GenerateAppkey, TestSize.Level1)
258 int ret = fbex.GenerateAppkey(userIdToFbe, appUid, keyId, size);
264 ret = fbex.GenerateAppkey(userIdToFbe, appUid, keyId, size);
270 ret = fbex.GenerateAppkey(userIdToFbe, appUid, keyId, size);
/ohos5.0/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()
309 {"generate_app_key", GenerateAppkey},
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/crypto/
H A Dfilesystem_crypto.cpp176 int32_t FileSystemCrypto::GenerateAppkey(uint32_t hashId, uint32_t userId, std::string &keyId) in GenerateAppkey() function in OHOS::StorageManager::FileSystemCrypto
186 return sdCommunication->GenerateAppkey(userId, hashId, keyId); in GenerateAppkey()
/ohos5.0/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.h44 …bool GenerateAppkey(uint32_t userId, uint32_t appUid, std::unique_ptr<uint8_t[]> &keyId, uint32_t …
H A Dfscrypt_key_v1.h39 bool GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId);
H A Dfbex.h65 …static int GenerateAppkey(UserIdToFbeStr &userIdToFbe, uint32_t hashId, std::unique_ptr<uint8_t[]>…
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/crypto/
H A Dfilesystem_crypto.h44 int32_t GenerateAppkey(uint32_t hashId, uint32_t userId, std::string &keyId);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dfscrypt_key_v1_ext.cpp137 bool FscryptKeyV1Ext::GenerateAppkey(uint32_t user, uint32_t hashId, std::unique_ptr<uint8_t[]> &ap… in GenerateAppkey() function in OHOS::StorageDaemon::FscryptKeyV1Ext
146 if (FBEX::GenerateAppkey(userIdToFbe, hashId, appKey, size)) { in GenerateAppkey()
H A Dfscrypt_key_v2.cpp143 bool FscryptKeyV2::GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId) in GenerateAppkey() function in OHOS::StorageDaemon::FscryptKeyV2
H A Dfscrypt_key_v1.cpp72 bool FscryptKeyV1::GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyDesc) in GenerateAppkey() function in OHOS::StorageDaemon::FscryptKeyV1
75 if (!fscryptV1Ext.GenerateAppkey(userId, hashId, appKey.data, appKey.size)) { in GenerateAppkey()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/
H A Dkey_manager_mock.cpp73 int32_t KeyManager::GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId) in GenerateAppkey() function in OHOS::StorageDaemon::KeyManager
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/client/include/
H A Dstorage_daemon_client.h58 static int32_t GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/client/
H A Dstorage_daemon_client.cpp373 int32_t StorageDaemonClient::GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId) in GenerateAppkey() function in OHOS::StorageDaemon::StorageDaemonClient
386 return client->GenerateAppkey(userId, hashId, keyId); in GenerateAppkey()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/ipc/test/
H A Dstorage_daemon_stub_mock.h62 MOCK_METHOD3(GenerateAppkey, int32_t (uint32_t, uint32_t, std::string &));
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/storage_daemon_communication/
H A Dstorage_daemon_communication.h64 int32_t GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/ipc/
H A Distorage_daemon.h69 virtual int32_t GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId) = 0;

123