Skip to content

Commit ab7181b

Browse files
roblablanicholasbishop
authored andcommitted
Expose digest algorithm of signature
1 parent b0840f8 commit ab7181b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

authenticode/src/signature.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ impl AuthenticodeSignature {
243243
self.indirect_data.message_digest.digest.as_bytes()
244244
}
245245

246+
/// Get the algorithm used for the authenticode digest embedded in the
247+
/// signature.
248+
pub fn digest_algorithm(&self) -> &spki::AlgorithmIdentifierOwned {
249+
&self.indirect_data.message_digest.digest_algorithm
250+
}
251+
246252
/// Get the authenticode signature.
247253
///
248254
/// This is the `encryptedDigest` value embedded in the signature;

0 commit comments

Comments
 (0)