Module api

Source
Expand description

High-level API to work with libcryptsetup supported devices (disks) The main focus is on LUKS1 and LUKS2 devices

Re-exports§

pub use crate::device::Error;
pub use crate::device::Keyslot;
pub use crate::device::Luks2TokenHandler;
pub use crate::device::Luks2TokenHandlerBox;
pub use crate::device::Luks2TokenHandlerRaw;
pub use crate::device::Luks2TokenId;
pub use crate::device::Result;

Structs§

CryptDeviceFormatBuilder
Struct containing state for the format() builder
CryptDeviceHandle
An opaque handle on an initialized crypt device
CryptDeviceLuks2FormatBuilder
CryptDeviceOpenBuilder
Struct containing state for the open() builder
Luks2Metadata
Luks2Token

Enums§

crypt_pbkdf_algo_type
crypt_status_info
crypt_token_info

Traits§

CryptDevice
Trait representing common operations on a crypt device
CryptDeviceType
Trait for querying the device type at runtime
Luks1CryptDevice
Trait representing specific operations on a LUKS1 device
Luks2CryptDevice
Trait representing specific operations on a LUKS2 device
LuksCryptDevice

Functions§

enable_debug
Enable internal libcryptsetup debugging
format
Builder to format a crypt device at the specified path
luks1_uuidDeprecated
Read the UUID of a LUKS1 container without opening the device
luks_uuid
Read the LUKS version used by a LUKS container without opening the device
luks_version
Read the LUKS version used by a LUKS container without opening the device
open
Builder to open a crypt device at the specified path
status
Query the status of an active crypt device

Type Aliases§

Luks1CryptDeviceHandle
Luks2CryptDeviceHandle