[][src]Enum luks2::LuksKdf

pub enum LuksKdf {
    pbkdf2 {
        salt: String,
        hash: String,
        iterations: u32,
    },
    argon2i {
        salt: String,
        time: u32,
        memory: u32,
        cpus: u32,
    },
    argon2id {
        salt: String,
        time: u32,
        memory: u32,
        cpus: u32,
    },
}

Stores information on the PBKDF type and parameters of a LuksKeyslot.

Variants

pbkdf2

Fields of pbkdf2

salt: String

The salt for the PBKDF in base64 (binary data).

hash: String

The hash algorithm for the PKBDF.

iterations: u32

The PBKDF2 iterations count.

argon2i

Fields of argon2i

salt: String

The salt for the PBKDF in base64 (binary data).

time: u32

The time cost (in fact the iterations).

memory: u32

The memory cost in kilobytes. If not available, the keyslot cannot be unlocked.

cpus: u32

The required nuber of threads (CPU cores number cost). If not available, unlocking will be slower.

argon2id

Fields of argon2id

salt: String

The salt for the PBKDF in base64 (binary data).

time: u32

The time cost (in fact the iterations).

memory: u32

The memory cost in kilobytes. If not available, the keyslot cannot be unlocked.

cpus: u32

The required nuber of threads (CPU cores number cost). If not available, unlocking will be slower.

Implementations

impl LuksKdf[src]

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

Returns the salt for the PBKDF in base64 (binary data).

Trait Implementations

impl Debug for LuksKdf[src]

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

impl PartialEq<LuksKdf> for LuksKdf[src]

impl Serialize for LuksKdf[src]

impl StructuralPartialEq for LuksKdf[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.