pub struct MasterKeyFile {
pub version: u32,
pub guid: String,
pub policy: u32,
pub flags: u32,
pub master_key: Vec<u8>,
pub backup_key: Vec<u8>,
pub cred_hist: Vec<u8>,
pub domain_key: Vec<u8>,
}Expand description
A parsed DPAPI master-key file, mirroring impacket’s MasterKeyFile.
The four sub-blobs are exposed as owned byte vectors (each may be empty when
its length field is zero). master_key is the only one needed for the user
password path; domain_key feeds the (not-yet-implemented) RSA backup path.
Fields§
§version: u32§guid: StringThe key GUID as stored (UTF-16LE, NUL-trimmed) — matches the file name.
policy: u32§flags: u32§master_key: Vec<u8>§backup_key: Vec<u8>§cred_hist: Vec<u8>§domain_key: Vec<u8>Trait Implementations§
Source§impl Clone for MasterKeyFile
impl Clone for MasterKeyFile
Source§fn clone(&self) -> MasterKeyFile
fn clone(&self) -> MasterKeyFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MasterKeyFile
impl RefUnwindSafe for MasterKeyFile
impl Send for MasterKeyFile
impl Sync for MasterKeyFile
impl Unpin for MasterKeyFile
impl UnsafeUnpin for MasterKeyFile
impl UnwindSafe for MasterKeyFile
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