Home
last modified time | relevance | path

Searched refs:cryptIface (Results 1 – 5 of 5) sorted by relevance

/openbmc/estoraged/src/erase/
H A DcryptoErase.cpp22 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 Destoraged.cpp55 eraseMinGeometry(eraseMinGeometry), cryptIface(std::move(cryptInterface)), in EStoraged()
57 cryptDevicePath(cryptIface->cryptGetDir() + "/" + luksName), in EStoraged()
299 int retval = cryptIface->cryptKeyslotChangeByPassphrase( in changePassword()
360 int retval = cryptIface->cryptFormat( in formatLuksDev()
373 retval = cryptIface->cryptKeyslotAddByVolumeKey( in formatLuksDev()
393 int retval = cryptIface->cryptLoad(cryptHandle.get(), CRYPT_LUKS2, nullptr); in loadLuksHeader()
425 int retval = cryptIface->cryptActivateByPassphrase( in activateLuksDev()
547 int retval = cryptIface->cryptDeactivate(nullptr, containerName.c_str()); in deactivateLuksDev()
/openbmc/estoraged/include/
H A DcryptErase.hpp33 std::unique_ptr<estoraged::CryptsetupInterface> cryptIface; member in estoraged::CryptErase
H A Destoraged.hpp218 std::unique_ptr<CryptsetupInterface> cryptIface; member in estoraged::EStoraged
/openbmc/estoraged/src/test/
H A Destoraged_test.cpp87 std::unique_ptr<MockCryptsetupInterface> cryptIface = in SetUp() local
89 mockCryptIface = cryptIface.get(); in SetUp()
95 EXPECT_CALL(*cryptIface, cryptGetDir).WillOnce(Return(testCryptDir)); in SetUp()
108 std::move(cryptIface), std::move(fsIface)); in SetUp()