[][src]Enum luks2::LuksAf

pub enum LuksAf {
    luks1 {
        stripes: u16,
        hash: String,
    },
}

An anti-forensic splitter of a LuksKeyslot. See the LUKS1 spec for more information.

Only the luks1 type compatible with LUKS1 is currently used.

Variants

luks1

Fields of luks1

stripes: u16

The number of stripes, for historical reasons only the 4000 value is supported.

hash: String

The hash algorithm used.

Implementations

impl LuksAf[src]

pub fn stripes(&self) -> u16[src]

Returns the number of stripes of the anti-forensic splitter.

pub fn hash(&self) -> &String[src]

Returns hash algorithm used for the anti-forensic splitter.

Trait Implementations

impl Debug for LuksAf[src]

impl<'de> Deserialize<'de> for LuksAf[src]

impl PartialEq<LuksAf> for LuksAf[src]

impl Serialize for LuksAf[src]

impl StructuralPartialEq for LuksAf[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.