Expand description
PE Signature Parser for Rust
pe-sign
is a cross-platform tool developed in Rust, designed for parsing and verifying digital signatures
in PE files. It provides a simple command-line interface that supports extracting certificates, verifying
digital signatures, calculating Authenticode digests, and printing certificate information. It can be used
as a standalone command-line tool or integrated into your Rust project as a dependency.
CommandLine Tool Document: README.md.
§Example
Run
$ cargo add pe-sign
Then use pesign
and parse PE file sigature to PeSign
struct in main.rs
:
use pesign::PeSign;
fn main() {
if let Some(pesign) = PeSign::from_pe_path("test.exe").unwrap() {
// Add your program logic.
} else {
println!("The file is no signed!!");
}
}
Re-exports§
pub use der;
Modules§
Structs§
- Attribute
- Attributes
- PE
- PE struct.
- PeSign
- Obtaining a PE file’s signature
- Verify
Option
Enums§
- PeSign
Status - PE Signature Status.