Searched refs:cryptIface (Results 1 – 5 of 5) sorted by relevance
/openbmc/estoraged/src/erase/ |
H A D | cryptoErase.cpp | 22 Erase(devPathIn), cryptIface(std::move(inCryptIface)) in CryptErase() 30 if (cryptIface->cryptLoad(cryptHandle.get(), CRYPT_LUKS2, nullptr) != 0) in doErase() 39 int nKeySlots = cryptIface->cryptKeySlotMax(CRYPT_LUKS2); in doErase() 59 cryptIface->cryptKeySlotStatus(cryptHandle.get(), i); in doErase() 63 if (cryptIface->cryptKeyslotDestroy(cryptHandle.get(), i) != 0) in doErase()
|
/openbmc/estoraged/src/ |
H A D | estoraged.cpp | 46 eraseMinGeometry(eraseMinGeometry), cryptIface(std::move(cryptInterface)), in EStoraged() 48 cryptDevicePath(cryptIface->cryptGetDir() + "/" + luksName), in EStoraged() 268 int retval = cryptIface->cryptKeyslotChangeByPassphrase( in changePassword() 329 int retval = cryptIface->cryptFormat( in formatLuksDev() 342 retval = cryptIface->cryptKeyslotAddByVolumeKey( in formatLuksDev() 362 int retval = cryptIface->cryptLoad(cryptHandle.get(), CRYPT_LUKS2, nullptr); in loadLuksHeader() 394 int retval = cryptIface->cryptActivateByPassphrase( in activateLuksDev() 503 int retval = cryptIface->cryptDeactivate(nullptr, containerName.c_str()); in deactivateLuksDev()
|
/openbmc/estoraged/include/ |
H A D | cryptErase.hpp | 33 std::unique_ptr<estoraged::CryptsetupInterface> cryptIface; member in estoraged::CryptErase
|
H A D | estoraged.hpp | 139 std::unique_ptr<CryptsetupInterface> cryptIface; member in estoraged::EStoraged
|
/openbmc/estoraged/src/test/ |
H A D | estoraged_test.cpp | 77 std::unique_ptr<MockCryptsetupInterface> cryptIface = in SetUp() local 79 mockCryptIface = cryptIface.get(); in SetUp() 85 EXPECT_CALL(*cryptIface, cryptGetDir).WillOnce(Return(testCryptDir)); in SetUp() 96 testDriveType, testDriveProtocol, std::move(cryptIface), in SetUp()
|