LIEF: Library to Instrument Executable Formats Version 0.17.0
|
#include <ContentInfo.hpp>
Classes | |
class | Content |
Public Member Functions | |
ContentInfo () | |
ContentInfo (const ContentInfo &other) | |
ContentInfo (ContentInfo &&other) noexcept=default | |
ContentInfo & | operator= (ContentInfo other) |
void | swap (ContentInfo &other) noexcept |
oid_t | content_type () const |
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) | |
Content & | value () |
const Content & | value () const |
std::vector< uint8_t > | digest () const |
Return the digest (authentihash) if the underlying content type is SPC_INDIRECT_DATA_OBJID Otherwise, return an empty vector. | |
ALGORITHMS | digest_algorithm () const |
Return the digest used to hash the file. | |
void | accept (Visitor &visitor) const override |
~ContentInfo () override=default | |
Public Member Functions inherited from LIEF::Object | |
Object () | |
Object (const Object &other) | |
Object & | operator= (const Object &other) |
template<class T > | |
output_t< T > | as () |
template<class T > | |
output_const_t< T > | as () const |
virtual bool | operator== (const Object &other) const |
virtual bool | operator!= (const Object &other) const |
virtual | ~Object () |
Additional Inherited Members | |
Public Types inherited from LIEF::Object | |
template<class T > | |
using | output_t = add_pointer_t<decay_t<T>> |
template<class T > | |
using | output_const_t = add_pointer_t<add_const_t<decay_t<T>>> |
ContentInfo as described in the RFC2315 (https://tools.ietf.org/html/rfc2315#section-7)
In the case of PE signature, ContentType must be set to SPC_INDIRECT_DATA_OBJID OID: 1.3.6.1.4.1.311.2.1.4
and content is defined by the structure: SpcIndirectDataContent
For PE signature, SpcAttributeTypeAndOptionalValue.type
is set to SPC_PE_IMAGE_DATAOBJ
(OID: 1.3.6.1.4.1.311.2.1.15
) and the value is defined by SpcPeImageData
LIEF::PE::ContentInfo::ContentInfo | ( | ) |
LIEF::PE::ContentInfo::ContentInfo | ( | const ContentInfo & | other | ) |
|
defaultnoexcept |
|
overridedefault |
|
overridevirtual |
Implements LIEF::Object.
|
inline |
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)
std::vector< uint8_t > LIEF::PE::ContentInfo::digest | ( | ) | const |
Return the digest (authentihash) if the underlying content type is SPC_INDIRECT_DATA_OBJID
Otherwise, return an empty vector.
ALGORITHMS LIEF::PE::ContentInfo::digest_algorithm | ( | ) | const |
Return the digest used to hash the file.
ContentInfo & LIEF::PE::ContentInfo::operator= | ( | ContentInfo | other | ) |
|
noexcept |
|
inline |
|
inline |