pub struct Keyslot {
pub active: u32,
pub iterations: u32,
pub salt: [u8; 32],
pub key_material_offset: u32,
pub stripes: u32,
}Expand description
One LUKS1 keyslot descriptor.
Fields§
§active: u32active marker (KEY_ENABLED / KEY_DISABLED).
iterations: u32PBKDF2 iteration count for this slot.
salt: [u8; 32]PBKDF2 salt (32 bytes).
key_material_offset: u32Byte offset of the anti-forensic key material = key_material_offset * 512.
stripes: u32Number of anti-forensic stripes (typically 4000).
Implementations§
Trait Implementations§
impl Eq for Keyslot
impl StructuralPartialEq for Keyslot
Auto Trait Implementations§
impl Freeze for Keyslot
impl RefUnwindSafe for Keyslot
impl Send for Keyslot
impl Sync for Keyslot
impl Unpin for Keyslot
impl UnsafeUnpin for Keyslot
impl UnwindSafe for Keyslot
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