Home
last modified time | relevance | path

Searched refs:cryptHandle (Results 1 – 2 of 2) sorted by relevance

/openbmc/estoraged/src/erase/
H A DcryptoErase.cpp28 CryptHandle cryptHandle{devPath}; in doErase() local
30 if (cryptIface->cryptLoad(cryptHandle.get(), CRYPT_LUKS2, nullptr) != 0) 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.cpp266 CryptHandle cryptHandle = loadLuksHeader(); in changePassword() local
269 cryptHandle.get(), CRYPT_ANY_SLOT, CRYPT_ANY_SLOT, in changePassword()
326 CryptHandle cryptHandle(devPath); in formatLuksDev() local
330 cryptHandle.get(), CRYPT_LUKS2, "aes", "xts-plain64", nullptr, in formatLuksDev()
343 cryptHandle.get(), CRYPT_ANY_SLOT, nullptr, 0, in formatLuksDev()
360 CryptHandle cryptHandle(devPath); in loadLuksHeader() local
362 int retval = cryptIface->cryptLoad(cryptHandle.get(), CRYPT_LUKS2, nullptr); in loadLuksHeader()
370 return cryptHandle; in loadLuksHeader()
392 CryptHandle cryptHandle = loadLuksHeader(); in activateLuksDev() local
395 cryptHandle.get(), containerName.c_str(), CRYPT_ANY_SLOT, in activateLuksDev()