Enum luks2::LuksKdf[][src]

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,
    },
}
Expand description

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

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

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.