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§
- Crypt
Device Format Builder - Struct containing state for the
format()
builder - Crypt
Device Handle - An opaque handle on an initialized crypt device
- Crypt
Device Luks2 Format Builder - Crypt
Device Open Builder - Struct containing state for the
open()
builder - Luks2
Metadata - Luks2
Token
Enums§
Traits§
- Crypt
Device - Trait representing common operations on a crypt device
- Crypt
Device Type - Trait for querying the device type at runtime
- Luks1
Crypt Device - Trait representing specific operations on a LUKS1 device
- Luks2
Crypt Device - Trait representing specific operations on a LUKS2 device
- Luks
Crypt Device
Functions§
- enable_
debug - Enable internal
libcryptsetup
debugging - format
- Builder to format a crypt device at the specified path
- luks1_
uuid Deprecated - 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