Home
last modified time | relevance | path

Searched refs:isFbeSupport (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fbex_test/
H A Dfbex_test.cpp198 bool isFbeSupport = true; variable
203 isFbeSupport = true;
208 EXPECT_EQ(isFbeSupport, true);
214 EXPECT_EQ(isFbeSupport, true);
288 bool isFbeSupport = true; variable
294 isFbeSupport = true;
299 EXPECT_EQ(isFbeSupport, true);
353 bool isFbeSupport = true; variable
362 isFbeSupport = true;
369 isFbeSupport = true;
[all …]
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/mock/
H A Dfscrypt_key_v1_ext_mock.cpp21 bool FscryptKeyV1Ext::LockUeceExt(bool &isFbeSupport) in LockUeceExt() argument
23 return IFscryptKeyV1Ext::fscryptKeyV1ExtMock->LockUeceExt(isFbeSupport); in LockUeceExt()
57 bool FscryptKeyV1Ext::ChangePinCodeClassE(uint32_t userId, bool &isFbeSupport) in ChangePinCodeClassE() argument
59 return IFscryptKeyV1Ext::fscryptKeyV1ExtMock->ChangePinCodeClassE(userId, isFbeSupport); in ChangePinCodeClassE()
63 bool &isFbeSupport) in ReadClassE() argument
66 length, isFbeSupport); in ReadClassE()
H A Dfscrypt_key_v1_ext_mock.h28 virtual bool LockUeceExt(bool &isFbeSupport) = 0;
31 bool &isFbeSupport) = 0;
33 virtual bool ChangePinCodeClassE(uint32_t userId, bool &isFbeSupport) = 0;
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/mock/
H A Dfbex_mock.cpp54 int FBEX::ChangePinCodeClassE(uint32_t userIdSingle, uint32_t userIdDouble, bool &isFbeSupport) in ChangePinCodeClassE() argument
56 return IFbexMoc::fbexMoc->ChangePinCodeClassE(userIdSingle, userIdDouble, isFbeSupport); in ChangePinCodeClassE()
72 int FBEX::LockUece(uint32_t userIdSingle, uint32_t userIdDouble, bool &isFbeSupport) in LockUece() argument
74 return IFbexMoc::fbexMoc->LockUece(userIdSingle, userIdDouble, isFbeSupport); in LockUece()
83 uint32_t length, bool &isFbeSupport) in ReadESecretToKernel() argument
85 … return IFbexMoc::fbexMoc->ReadESecretToKernel(userIdToFbe, status, eBuffer, length, isFbeSupport); in ReadESecretToKernel()
H A Dfscrypt_key_v2_mock.cpp46 bool FscryptKeyV2::LockUece(bool &isFbeSupport) in LockUece() argument
51 return IFscryptKeyV2Moc::fscryptKeyV2Moc->LockUece(isFbeSupport); in LockUece()
94 bool FscryptKeyV2::ChangePinCodeClassE(bool &isFbeSupport, uint32_t userId) in ChangePinCodeClassE() argument
99 return IFscryptKeyV2Moc::fscryptKeyV2Moc->ChangePinCodeClassE(isFbeSupport, userId); in ChangePinCodeClassE()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fscrypt_key_v1_ext_test/
H A Dfscrypt_key_v1_ext_test.cpp295 bool isFbeSupport; variable
300 EXPECT_EQ(ext.ChangePinCodeClassE(100, isFbeSupport), true);
304 EXPECT_EQ(ext.ChangePinCodeClassE(100, isFbeSupport), true);
308 EXPECT_EQ(ext.ChangePinCodeClassE(100, isFbeSupport), false);
321 bool isFbeSupport; variable
327 EXPECT_EQ(ext.ReadClassE(0, classEBuffer, 1, isFbeSupport), true);
331 EXPECT_EQ(ext.ReadClassE(0, classEBuffer, 1, isFbeSupport), true);
442 bool isFbeSupport; variable
447 EXPECT_EQ(ext.LockUeceExt(isFbeSupport), true);
451 EXPECT_EQ(ext.LockUeceExt(isFbeSupport), false);
[all …]
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/mock/
H A Dfscrypt_key_v2_mock.h34 virtual bool LockUece(bool &isFbeSupport) = 0;
38 virtual bool ChangePinCodeClassE(bool &isFbeSupport, uint32_t userId) = 0;
53 MOCK_METHOD1(LockUece, bool(bool &isFbeSupport));
57 MOCK_METHOD2(ChangePinCodeClassE, bool(bool &isFbeSupport, uint32_t userId));
H A Dfbex_mock.h41 …tual int ChangePinCodeClassE(uint32_t userIdSingle, uint32_t userIdDouble, bool &isFbeSupport) = 0;
43 virtual int LockUece(uint32_t userIdSingle, uint32_t userIdDouble, bool &isFbeSupport) = 0;
62 …ETHOD3(ChangePinCodeClassE, int(uint32_t userIdSingle, uint32_t userIdDouble, bool &isFbeSupport));
64 MOCK_METHOD3(LockUece, int(uint32_t userIdSingle, uint32_t userIdDouble, bool &isFbeSupport));
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fscrypt_v2_test/
H A Dfscrypt_key_v2_test.cpp154 bool isFbeSupport = true; variable
155 EXPECT_TRUE(g_testKeyV2.LockUece(isFbeSupport));
156 EXPECT_FALSE(isFbeSupport);
189 bool isFbeSupport = true; variable
190 EXPECT_TRUE(g_testKeyV2.ChangePinCodeClassE(isFbeSupport));
191 EXPECT_FALSE(isFbeSupport);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dfscrypt_key_v1.cpp216 bool FscryptKeyV1::ChangePinCodeClassE(bool &isFbeSupport, uint32_t userId) in ChangePinCodeClassE() argument
219 if (!fscryptV1Ext.ChangePinCodeClassE(userId, isFbeSupport)) { in ChangePinCodeClassE()
272 bool isFbeSupport = true; in DecryptClassE() local
273 if (!fscryptV1Ext.ReadClassE(USER_UNLOCK, eSecretFBE.data, eSecretFBE.size, isFbeSupport)) { in DecryptClassE()
283 if (!isFbeSupport) { in DecryptClassE()
310 bool isFbeSupport = true; in EncryptClassE() local
311 if (!fscryptV1Ext.ReadClassE(status, eSecretFBE.data, eSecretFBE.size, isFbeSupport)) { in EncryptClassE()
315 if (!isFbeSupport) { in EncryptClassE()
472 bool FscryptKeyV1::LockUece(bool &isFbeSupport) in LockUece() argument
476 if (!fscryptV1Ext.LockUeceExt(isFbeSupport)) { in LockUece()
H A Dfscrypt_key_v1_ext.cpp183 bool FscryptKeyV1Ext::ChangePinCodeClassE(uint32_t userId, bool &isFbeSupport) in ChangePinCodeClassE() argument
190 if (FBEX::ChangePinCodeClassE(userId_, userIdDouble, isFbeSupport)) { in ChangePinCodeClassE()
198 bool &isFbeSupport) in ReadClassE() argument
207 if (FBEX::ReadESecretToKernel(userIdToFbe, status, classEBuffer, length, isFbeSupport)) { in ReadClassE()
276 bool FscryptKeyV1Ext::LockUeceExt(bool &isFbeSupport) in LockUeceExt() argument
284 if (FBEX::LockUece(userId_, userIdDouble, isFbeSupport)) { in LockUeceExt()
H A Dfscrypt_key_v2.cpp128 bool FscryptKeyV2::LockUece(bool &isFbeSupport) in LockUece() argument
130 isFbeSupport = false; in LockUece()
171 bool FscryptKeyV2::ChangePinCodeClassE(bool &isFbeSupport, uint32_t userId) in ChangePinCodeClassE() argument
174 isFbeSupport = false; in ChangePinCodeClassE()
H A Dfbex.cpp332 int FBEX::ChangePinCodeClassE(uint32_t userIdSingle, uint32_t userIdDouble, bool &isFbeSupport) in ChangePinCodeClassE() argument
339 isFbeSupport = false; in ChangePinCodeClassE()
416 int FBEX::LockUece(uint32_t userIdSingle, uint32_t userIdDouble, bool &isFbeSupport) in LockUece() argument
424 isFbeSupport = false; in LockUece()
482 uint32_t length, bool &isFbeSupport) in ReadESecretToKernel() argument
492 isFbeSupport = false; in ReadESecretToKernel()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dfscrypt_key_v1_ext.h41 bool ChangePinCodeClassE(uint32_t userId, bool &isFbeSupport);
42 …sE(uint32_t status, std::unique_ptr<uint8_t[]> &classEBuffer, uint32_t length, bool &isFbeSupport);
45 bool LockUeceExt(bool &isFbeSupport);
H A Dfbex.h57 … std::unique_ptr<uint8_t[]> &eBuffer, uint32_t length, bool &isFbeSupport);
64 … static int ChangePinCodeClassE(uint32_t userIdSingle, uint32_t userIdDouble, bool &isFbeSupport);
67 static int LockUece(uint32_t userIdSingle, uint32_t userIdDouble, bool &isFbeSupport);
H A Dfscrypt_key_v2.h39 bool ChangePinCodeClassE(bool &isFbeSupport, uint32_t userId = 0);
45 bool LockUece(bool &isFbeSupport);
H A Dfscrypt_key_v1.h44 bool ChangePinCodeClassE(bool &isFbeSupport, uint32_t userId = 0);
48 bool LockUece(bool &isFbeSupport);
H A Dbase_key.h61 virtual bool ChangePinCodeClassE(bool &isFbeSupport, uint32_t userId) = 0;
62 virtual bool LockUece(bool &isFbeSupport) = 0;