Struct pelite::pe64::security::Security

source ·
pub struct Security<'a, P> { /* private fields */ }
Expand description

Security Directory.

For more information see the module-level documentation.

Implementations

Gets the PE instance.

Returns the underlying security directory image.

Gets the raw certificate data bytes.

The interpretation of this data depends the type of the certificate. No further introspection is provided.

External tools such as OpenSSL can be used to further disect and analyze this data. Eg. for WIN_CERT_TYPE_PKCS_SIGNED_DATA the following can be used to decode the bytes:

openssl pkcs7 -inform DER -print_certs -text -in pe_certificate

Trait Implementations

Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.