estoraged.hpp (5d799bb97ca8759f39a35f1121f77b03c4efbfba) | estoraged.hpp (b2c86be3b1c6bf26dbfbcf3e3a3f3322472023e9) |
---|---|
1#pragma once 2 3#include "cryptsetupInterface.hpp" 4#include "filesystemInterface.hpp" 5#include "util.hpp" 6 7#include <libcryptsetup.h> 8 --- 118 unchanged lines hidden (view full) --- 127 /** @brief D-Bus interface for the logical volume. */ 128 std::shared_ptr<sdbusplus::asio::dbus_interface> volumeInterface; 129 130 /** @brief D-Bus interface for the physical drive. */ 131 std::shared_ptr<sdbusplus::asio::dbus_interface> driveInterface; 132 133 /** @brief Format LUKS encrypted device. 134 * | 1#pragma once 2 3#include "cryptsetupInterface.hpp" 4#include "filesystemInterface.hpp" 5#include "util.hpp" 6 7#include <libcryptsetup.h> 8 --- 118 unchanged lines hidden (view full) --- 127 /** @brief D-Bus interface for the logical volume. */ 128 std::shared_ptr<sdbusplus::asio::dbus_interface> volumeInterface; 129 130 /** @brief D-Bus interface for the physical drive. */ 131 std::shared_ptr<sdbusplus::asio::dbus_interface> driveInterface; 132 133 /** @brief Format LUKS encrypted device. 134 * |
135 * @param[in] cd - initialized crypt_device struct for the device. | |
136 * @param[in] password - password to set for the LUKS device. 137 */ | 135 * @param[in] password - password to set for the LUKS device. 136 */ |
138 void formatLuksDev(struct crypt_device* cd, std::vector<uint8_t> password); | 137 void formatLuksDev(std::vector<uint8_t> password); |
139 140 /** @brief Unlock the device. 141 * | 138 139 /** @brief Unlock the device. 140 * |
142 * @param[in] cd - initialized crypt_device struct for the device. | |
143 * @param[in] password - password to activate the LUKS device. 144 */ | 141 * @param[in] password - password to activate the LUKS device. 142 */ |
145 void activateLuksDev(struct crypt_device* cd, 146 std::vector<uint8_t> password); | 143 void activateLuksDev(std::vector<uint8_t> password); |
147 148 /** @brief Create the filesystem on the LUKS device. 149 * @details The LUKS device should already be activated, i.e. unlocked. 150 */ 151 void createFilesystem(); 152 153 /** @brief Deactivate the LUKS device. 154 * @details The filesystem is assumed to be unmounted already. --- 20 unchanged lines hidden --- | 144 145 /** @brief Create the filesystem on the LUKS device. 146 * @details The LUKS device should already be activated, i.e. unlocked. 147 */ 148 void createFilesystem(); 149 150 /** @brief Deactivate the LUKS device. 151 * @details The filesystem is assumed to be unmounted already. --- 20 unchanged lines hidden --- |