Trait Luks1CryptDevice

Source
pub trait Luks1CryptDevice: LuksCryptDevice {
    // Required methods
    fn hash_spec(&self) -> &str;
    fn mk_bits(&self) -> u32;
    fn mk_digest(&self) -> &[u8; 20];
    fn mk_iterations(&self) -> u32;
    fn mk_salt(&self) -> &[u8; 32];
    fn payload_offset(&self) -> u32;
}
Expand description

Trait representing specific operations on a LUKS1 device

Required Methods§

Source

fn hash_spec(&self) -> &str

Get the hash algorithm used

Source

fn mk_bits(&self) -> u32

Number of bits in the master key

Source

fn mk_digest(&self) -> &[u8; 20]

Master key header digest

Source

fn mk_iterations(&self) -> u32

Master key PBKDF2 iterations

Source

fn mk_salt(&self) -> &[u8; 32]

Master key salt

Source

fn payload_offset(&self) -> u32

Get the offset of the payload

Implementors§