pub struct RichHeaderInfo<'data> {
pub offset: usize,
pub length: usize,
pub xor_key: u32,
/* private fields */
}
Expand description
Parsed information about a Rich Header.
Fields
offset: usize
The offset at which the rich header starts.
length: usize
The length (in bytes) of the rich header.
This includes the payload, but also the 16-byte start sequence and the 8-byte final “Rich” and XOR key.
xor_key: u32
The XOR key used to mask the rich header.
Unless the file has been tampered with, it should be equal to a checksum of the file header.
Implementations
Try to locate a rich header and its entries in the current PE file.
Returns an iterator over the unmasked entries.
Trait Implementations
Auto Trait Implementations
impl<'data> RefUnwindSafe for RichHeaderInfo<'data>
impl<'data> Send for RichHeaderInfo<'data>
impl<'data> Sync for RichHeaderInfo<'data>
impl<'data> Unpin for RichHeaderInfo<'data>
impl<'data> UnwindSafe for RichHeaderInfo<'data>
Blanket Implementations
Mutably borrows from an owned value. Read more