pub fn open<P: AsRef<Path>>(path: P) -> Result<CryptDeviceOpenBuilder>
Expand description

Builder to open a crypt device at the specified path

Examples

use cryptsetup_rs::*;
let device = open("/dev/loop0")?.luks1()?;