[−][src]Crate cryptsetup_rs
Rust bindings to libcryptsetup
- working with encrypted disks on Linux
Example
See api
module documentation for more.
use cryptsetup_rs::*; let device = open("/dev/loop0")?.luks1()?; println!("Device UUID: {}", device.uuid()); println!("Device cipher: {}", device.cipher());
Re-exports
pub use api::enable_debug; |
pub use api::format; |
pub use api::luks1_uuid; |
pub use api::open; |
pub use api::CryptDevice; |
pub use api::CryptDeviceType; |
pub use api::Error; |
pub use api::Keyslot; |
pub use api::Luks1CryptDevice; |
pub use api::Luks1CryptDeviceHandle; |
pub use api::Result; |
Modules
api | High-level API to work with |
device | Low-level cryptsetup binding that sits directly on top of the |
Enums
crypt_device_type | |
crypt_keyslot_info | |
crypt_rng_type |