Enum luks2::LuksKeyslot[][src]

pub enum LuksKeyslot {
    luks2 {
        key_size: u16,
        area: LuksArea,
        kdf: LuksKdf,
        af: LuksAf,
        priority: Option<LuksPriority>,
    },
}
Expand description

A keyslot contains information about stored keys – areas, where binary keyslot data are located, encryption and anti-forensic function used, password-based key derivation function (PBKDF) and related parameters.

Only the luks2 type is currently used.

Variants

luks2

Fields of luks2

key_size: u16

The size of the key stored in the slot, in bytes.

area: LuksArea

The allocated area in the binary keyslots area.

kdf: LuksKdf

The PBKDF type and parameters used.

af: LuksAf

The anti-forensic splitter.

priority: Option<LuksPriority>

The keyslot priority (optional).

Implementations

Returns the key size of the key stored in the slot, in bytes.

Returns the area of the keyslot.

Returns the key derivation function of the keyslot.

Returns the anti-forensic splitter of the keyslot.

Returns the priority of the keyslot.

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.