Struct authenticode::AttributeCertificate
source · pub struct AttributeCertificate<'a> {
pub revision: u16,
pub certificate_type: u16,
pub data: &'a [u8],
}
Expand description
Raw data for a PE attribute certificate.
Note that PE attribute certificates are not related to X.509 attribute certificates.
Fields§
§revision: u16
WIN_CERTIFICATE
version number.
certificate_type: u16
Certificate type.
data: &'a [u8]
Raw certificate data (not including the header).
Implementations§
source§impl<'a> AttributeCertificate<'a>
impl<'a> AttributeCertificate<'a>
sourcepub fn get_authenticode_signature(
&self
) -> Result<AuthenticodeSignature, AttributeCertificateAuthenticodeError>
pub fn get_authenticode_signature( &self ) -> Result<AuthenticodeSignature, AttributeCertificateAuthenticodeError>
Get the certificate data as an authenticode signature.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AttributeCertificate<'a>
impl<'a> Send for AttributeCertificate<'a>
impl<'a> Sync for AttributeCertificate<'a>
impl<'a> Unpin for AttributeCertificate<'a>
impl<'a> UnwindSafe for AttributeCertificate<'a>
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