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
Implementations§
Source§impl LuksDigest
impl LuksDigest
Sourcepub fn iterations(&self) -> u32
pub fn iterations(&self) -> u32
Returns the PBKDF2 iterations count.
Trait Implementations§
Source§impl Debug for LuksDigest
impl Debug for LuksDigest
Source§impl<'de> Deserialize<'de> for LuksDigest
impl<'de> Deserialize<'de> for LuksDigest
Source§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
Source§impl PartialEq for LuksDigest
impl PartialEq for LuksDigest
Source§impl Serialize for LuksDigest
impl Serialize for LuksDigest
impl StructuralPartialEq for LuksDigest
Auto Trait Implementations§
impl Freeze for LuksDigest
impl RefUnwindSafe for LuksDigest
impl Send for LuksDigest
impl Sync for LuksDigest
impl Unpin for LuksDigest
impl UnwindSafe for LuksDigest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more