16#ifndef LIEF_PE_CONTENT_INFO_H
17#define LIEF_PE_CONTENT_INFO_H
93 virtual std::unique_ptr<Content>
clone()
const = 0;
94 virtual void print(std::ostream& os)
const = 0;
115 return value_->content_type();
140 std::unique_ptr<Content> value_;
Definition ContentInfo.hpp:83
~Content() override=default
const oid_t & content_type() const
Definition ContentInfo.hpp:89
Content(oid_t oid)
Definition ContentInfo.hpp:85
virtual std::unique_ptr< Content > clone() const =0
virtual void print(std::ostream &os) const =0
friend std::ostream & operator<<(std::ostream &os, const Content &content)
Definition ContentInfo.hpp:96
Definition ContentInfo.hpp:78
std::vector< uint8_t > digest() const
Return the digest (authentihash) if the underlying content type is SPC_INDIRECT_DATA_OBJID Otherwise,...
ALGORITHMS digest_algorithm() const
Return the digest used to hash the file.
void accept(Visitor &visitor) const override
ContentInfo(ContentInfo &&other) noexcept=default
ContentInfo(const ContentInfo &other)
const Content & value() const
Definition ContentInfo.hpp:122
oid_t content_type() const
Return the OID that describes the content wrapped by this object. It should match SPC_INDIRECT_DATA_O...
Definition ContentInfo.hpp:114
~ContentInfo() override=default
Content & value()
Definition ContentInfo.hpp:118
void swap(ContentInfo &other) noexcept
ContentInfo & operator=(ContentInfo other)
friend std::ostream & operator<<(std::ostream &os, const ContentInfo &content_info)
Main interface to parse PE binaries. In particular the static functions: Parser::parse should be used...
Definition PE/Parser.hpp:47
Definition SignatureParser.hpp:37
Definition Visitor.hpp:224
ALGORITHMS
Cryptography algorithms.
Definition PE/enums.hpp:686
std::string oid_t
Definition PE/signature/types.hpp:23
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41