[][src]Function cryptsetup_rs::device::luks1_format

pub fn luks1_format(
    cd: &mut RawDevice,
    cipher: &str,
    cipher_mode: &str,
    hash: &str,
    mk_bits: usize,
    maybe_uuid: Option<&Uuid>
) -> Result<()>

Format a new crypt device but do not activate it

Note this does not add an active keyslot