signon
8.58
|
Wraps the libcryptsetup API functionality. More...
#include <crypto-handlers.h>
Static Public Member Functions | |
static bool | formatFile (const QByteArray &key, const QString &deviceName) |
Formats the file system. More... | |
static bool | openFile (const QByteArray &key, const QString &deviceName, const QString &deviceMap) |
Opens the file system. More... | |
static bool | closeFile (const QString &deviceName) |
Closes the file system. More... | |
static bool | removeFile (const QString &deviceName) |
Removes the file system. More... | |
static bool | addKeySlot (const QString &deviceName, const QByteArray &key, const QByteArray &existingKey) |
Adds a key to a free encryption header slot. More... | |
static bool | loadDmMod () |
Loads the dm_mod kernel module. More... | |
static QString | error () |
Wraps the libcryptsetup API functionality.
Definition at line 199 of file crypto-handlers.h.
|
static |
Adds a key to a free encryption header slot.
This operation is to be executed if at least one key is already set in the LUKS header.
deviceName,name | of the device. |
key,the | key to be added. |
existingKey,an | already existing key. |
Definition at line 567 of file crypto-handlers.cpp.
References crypt_luksAddKeyBinary(), error(), SIGNON_LUKS_CIPHER, SIGNON_LUKS_KEY_SIZE, and TRACE.
Referenced by CryptoManager::addEncryptionKey().
|
static |
Closes the file system.
deviceName,name | of the mapped device to be closed. |
Definition at line 500 of file crypto-handlers.cpp.
References crypt_removeDevice(), error(), and TRACE.
Referenced by CryptoManager::mountFileSystem(), CryptoManager::setupFileSystem(), and CryptoManager::unmountFileSystem().
|
static |
Definition at line 693 of file crypto-handlers.cpp.
Referenced by addKeySlot(), closeFile(), formatFile(), and openFile().
|
static |
Formats the file system.
key,key | of the ecrypted file system |
deviceName,name | of the loop device LUKS formatted. |
Definition at line 340 of file crypto-handlers.cpp.
References crypt_luksFormatBinary(), error(), SIGNON_LUKS_BASE_KEYSLOT, SIGNON_LUKS_CIPHER, SIGNON_LUKS_KEY_SIZE, and TRACE.
Referenced by CryptoManager::setupFileSystem().
|
static |
Loads the dm_mod
kernel module.
Definition at line 685 of file crypto-handlers.cpp.
References SystemCommandLineCallHandler::makeCall().
Referenced by CryptoManager::CryptoManager(), CryptoManager::mountFileSystem(), and CryptoManager::setupFileSystem().
|
static |
Opens the file system.
key,key | of the ecrypted file system |
deviceName,name | of the loop device to be opened. |
deviceMap,name | of the device mapper mapped device. |
Definition at line 429 of file crypto-handlers.cpp.
References crypt_luksOpenBinary(), error(), and TRACE.
Referenced by CryptoManager::mountFileSystem(), and CryptoManager::setupFileSystem().
|
static |
Removes the file system.
deviceName,name | of the device. |
Definition at line 526 of file crypto-handlers.cpp.