Enum luks2::LuksDigest[][src]

pub enum LuksDigest {
    pbkdf2 {
        keyslots: Vec<u8>,
        segments: Vec<u8>,
        salt: String,
        digest: String,
        hash: String,
        iterations: u32,
    },
}
Expand description

A digest is used to verify that a key decrypted from a keyslot is correct. Digests are assigned to keyslots and segments. If it is not assigned to a segment, then it is a digest for an unbound key. Every keyslot must have one assigned digest. The key digest also specifies the exact key size for the encryption algorithm of the segment.

Only the pbkdf2 type compatible with LUKS1 is used.

Variants

pbkdf2

Fields of pbkdf2

keyslots: Vec<u8>

A list of keyslot numbers that are assigned to the digest.

segments: Vec<u8>

A list of segment numbers that are assigned to the digest.

salt: String

The binary salt for the digest, in base64.

digest: String

The binary digest data, in base64.

hash: String

The hash algorithm used by PBKDF2.

iterations: u32

The PBKDF2 iterations count.

Implementations

Returns the keyslots assigned to the digest.

Returns the segments assigned to the digest.

Returns the salt of the digest.

Returns the digest of the digest object.

Returns the hash algorithm used by PBKDF2.

Returns the PBKDF2 iterations count.

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.