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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.