Expand description
Authenticode utilities.
Reference: https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
§Features
All features are disabled by default.
object
: Enables a dependency onobject
and implsPeTrait
forPeFile
.std
: Turns offno_std
and implsstd::error::Error
for the error types.
Structs§
- Attribute
Certificate - Raw data for a PE attribute certificate.
- Attribute
Certificate Iterator - Iterator over PE attribute certificates.
- Authenticode
Signature - Parsed authenticode signature.
- Digest
Info - Authenticode ASN.1 digest data.
- PeOffset
Error - An offset within the PE is invalid.
- PeOffsets
- Various offsets within the PE file needed for authenticode hashing.
- SpcAttribute
Type AndOptional Value - Authenticode ASN.1 image data.
- SpcIndirect
Data Content - Authenticode ASN.1 image and digest data.
Enums§
- Attribute
Certificate Authenticode Error - Error returned by
AttributeCertificate::get_authenticode_signature
. - Attribute
Certificate Error - Error type for
AttributeCertificateIterator
. - Authenticode
Signature Parse Error - Error returned by
AuthenticodeSignature::from_bytes
.
Constants§
- SPC_
INDIRECT_ DATA_ OBJID - OID for
SpcIndirectDataContent
. - WIN_
CERT_ REVISION_ 2_ 0 - Current version of
Win_Certificate
structure. - WIN_
CERT_ TYPE_ PKCS_ SIGNED_ DATA - Certificate contains a PKCS#7
SignedData
structure.
Traits§
- PeTrait
- Trait for reading a PE file.
Functions§
- authenticode_
digest - Calculate an authenticode digest.