[−][src]Struct cryptsetup_rs::api::CryptDeviceFormatBuilder
Struct containing state for the format()
builder
Implementations
impl CryptDeviceFormatBuilder
[src]
pub fn iteration_time(self, iteration_time_ms: u64) -> Self
[src]
Set the iteration time for the PBKDF2
function. Note that this does not affect the MK iterations.
pub fn rng_type(self, rng_type: crypt_rng_type) -> Self
[src]
Set the random number generator to use
pub fn luks1(
self: CryptDeviceFormatBuilder,
cipher: &str,
cipher_mode: &str,
hash: &str,
mk_bits: usize,
maybe_uuid: Option<&Uuid>
) -> Result<CryptDeviceHandle<Luks1Params>>
[src]
self: CryptDeviceFormatBuilder,
cipher: &str,
cipher_mode: &str,
hash: &str,
mk_bits: usize,
maybe_uuid: Option<&Uuid>
) -> Result<CryptDeviceHandle<Luks1Params>>
Formats a new block device as a LUKS1 crypt device with the specified parameters
pub fn luks2<'a>(
self: CryptDeviceFormatBuilder,
cipher: &'a str,
cipher_mode: &'a str,
mk_bits: usize,
maybe_uuid: Option<&'a Uuid>,
maybe_data_alignment: Option<u32>,
maybe_sector_size: Option<u32>
) -> CryptDeviceLuks2FormatBuilder<'a>
[src]
self: CryptDeviceFormatBuilder,
cipher: &'a str,
cipher_mode: &'a str,
mk_bits: usize,
maybe_uuid: Option<&'a Uuid>,
maybe_data_alignment: Option<u32>,
maybe_sector_size: Option<u32>
) -> CryptDeviceLuks2FormatBuilder<'a>
Set the format to LUKS2, and build further options
Auto Trait Implementations
impl RefUnwindSafe for CryptDeviceFormatBuilder
impl !Send for CryptDeviceFormatBuilder
impl !Sync for CryptDeviceFormatBuilder
impl Unpin for CryptDeviceFormatBuilder
impl UnwindSafe for CryptDeviceFormatBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,