/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/key_manager_test/ |
H A D | key_manager_sup_test.cpp | 139 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 D | fscrypt_key_v1_ext_mock.h | 36 …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 D | fscrypt_key_v1_ext_mock.cpp | 74 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 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 | 42 …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 D | fscrypt_key_v2_mock.cpp | 62 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 D | fbex_mock.cpp | 65 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 D | fscrypt_key_v1_ext_test.cpp | 221 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 D | fbex_test.cpp | 247 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 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() 309 {"generate_app_key", GenerateAppkey},
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/crypto/ |
H A D | filesystem_crypto.cpp | 176 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 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 | 44 …bool GenerateAppkey(uint32_t userId, uint32_t appUid, std::unique_ptr<uint8_t[]> &keyId, uint32_t …
|
H A D | fscrypt_key_v1.h | 39 bool GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId);
|
H A D | fbex.h | 65 …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 D | filesystem_crypto.h | 44 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 D | fscrypt_key_v1_ext.cpp | 137 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 D | fscrypt_key_v2.cpp | 143 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 | 72 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 D | key_manager_mock.cpp | 73 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 D | storage_daemon_client.h | 58 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 D | storage_daemon_client.cpp | 373 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 D | storage_daemon_stub_mock.h | 62 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 D | storage_daemon_communication.h | 64 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 D | istorage_daemon.h | 69 virtual int32_t GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId) = 0;
|