Struct lief::pe::signature::content_info::ContentInfo
pub struct ContentInfo<'a> { /* private fields */ }
Implementations§
§impl ContentInfo<'_>
impl ContentInfo<'_>
ContentInfo as described in the RFC2315 https://tools.ietf.org/html/rfc2315#section-7
pub fn content_type(&self) -> String
pub fn content_type(&self) -> String
Return the OID that describes the content wrapped by this object.
It should match SPC_INDIRECT_DATA_OBJID
(1.3.6.1.4.1.311.2.1.4
)
pub fn value(&self) -> Option<Content<'_>>
pub fn digest(&self) -> Vec<u8>
pub fn digest(&self) -> Vec<u8>
Return the digest (authentihash) if the underlying content type is SPC_INDIRECT_DATA_OBJID
Otherwise, return an empty vector
pub fn digest_algorithm(&self) -> Algorithms
pub fn digest_algorithm(&self) -> Algorithms
Return the digest used to hash the file
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ContentInfo<'a>
impl<'a> !Send for ContentInfo<'a>
impl<'a> !Sync for ContentInfo<'a>
impl<'a> Unpin for ContentInfo<'a>
impl<'a> UnwindSafe for ContentInfo<'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