Skip to main content

parse_masterkey_file

Function parse_masterkey_file 

Source
pub fn parse_masterkey_file(data: &[u8]) -> Result<MasterKeyFile, DpapiError>
Expand description

Parse a DPAPI master-key file (impacket MasterKeyFile layout).

Validates the 128-byte header is present and that the four declared sub-blob lengths fit the buffer; a truncated file is rejected loudly with the byte counts rather than silently yielding a short sub-blob.