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
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 PBKDF2 iterations count.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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 !=
.