pub struct DpapiBlob {
pub version: u32,
pub master_key_guid: [u8; 16],
pub description: String,
pub alg_id_encrypt: u32,
pub alg_id_hash: u32,
pub salt: Vec<u8>,
pub hmac_key: Vec<u8>,
pub hmac: Vec<u8>,
pub ciphertext: Vec<u8>,
pub sign: Vec<u8>,
pub to_sign: Vec<u8>,
}Expand description
A parsed DPAPI data blob, mirroring impacket’s DPAPI_BLOB structure.
Field names follow impacket: salt is the session-key salt, hmac is the
length-prefixed HMac field, ciphertext is Data, and sign is the
trailing integrity HMAC (Sign). to_sign is the byte range impacket signs
(rawData[20 .. len - SignLen - 4]), retained so the integrity check needs
no re-parse.
Fields§
§version: u32§master_key_guid: [u8; 16]§description: String§alg_id_encrypt: u32§alg_id_hash: u32§salt: Vec<u8>§hmac_key: Vec<u8>§hmac: Vec<u8>§ciphertext: Vec<u8>§sign: Vec<u8>§to_sign: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl Freeze for DpapiBlob
impl RefUnwindSafe for DpapiBlob
impl Send for DpapiBlob
impl Sync for DpapiBlob
impl Unpin for DpapiBlob
impl UnsafeUnpin for DpapiBlob
impl UnwindSafe for DpapiBlob
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