Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions authenticode/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ impl AuthenticodeSignature {
self.indirect_data.message_digest.digest.as_bytes()
}

/// Get the algorithm used for the authenticode digest embedded in the
/// signature.
pub fn digest_algorithm(&self) -> &spki::AlgorithmIdentifierOwned {
&self.indirect_data.message_digest.digest_algorithm
}

/// Get the authenticode signature.
///
/// This is the `encryptedDigest` value embedded in the signature;
Expand Down