pub struct AuthenticodeSignature { /* private fields */ }
Expand description
Parsed authenticode signature.
Implementations§
Source§impl AuthenticodeSignature
impl AuthenticodeSignature
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, AuthenticodeSignatureParseError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, AuthenticodeSignatureParseError>
Parse an AuthenticodeSignature
from DER-encoded bytes.
Note that while many aspects of the data are validated, this does not constitute actual signature verification.
Sourcepub fn signer_info(&self) -> &SignerInfo
pub fn signer_info(&self) -> &SignerInfo
Get SignerInfo
.
Sourcepub fn digest(&self) -> &[u8] ⓘ
pub fn digest(&self) -> &[u8] ⓘ
Get the authenticode digest.
This is the digest value embedded in the signature; it is not guaranteed to be correct.
Sourcepub fn signature(&self) -> &[u8] ⓘ
pub fn signature(&self) -> &[u8] ⓘ
Get the authenticode signature.
This is the encryptedDigest
value embedded in the signature;
it is not guaranteed to be correct.
Sourcepub fn encapsulated_content(&self) -> Option<&[u8]>
pub fn encapsulated_content(&self) -> Option<&[u8]>
Get the encapsulated content.
Sourcepub fn certificates(&self) -> impl Iterator<Item = &Certificate>
pub fn certificates(&self) -> impl Iterator<Item = &Certificate>
Get the certificate chain.
Trait Implementations§
Source§impl Clone for AuthenticodeSignature
impl Clone for AuthenticodeSignature
Source§fn clone(&self) -> AuthenticodeSignature
fn clone(&self) -> AuthenticodeSignature
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AuthenticodeSignature
impl Debug for AuthenticodeSignature
Source§impl PartialEq for AuthenticodeSignature
impl PartialEq for AuthenticodeSignature
impl Eq for AuthenticodeSignature
impl StructuralPartialEq for AuthenticodeSignature
Auto Trait Implementations§
impl Freeze for AuthenticodeSignature
impl RefUnwindSafe for AuthenticodeSignature
impl Send for AuthenticodeSignature
impl Sync for AuthenticodeSignature
impl Unpin for AuthenticodeSignature
impl UnwindSafe for AuthenticodeSignature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more