16#ifndef LIEF_PE_SPC_INDIRECT_DATA_H
17#define LIEF_PE_SPC_INDIRECT_DATA_H
34 static constexpr auto SPC_INDIRECT_DATA_OBJID =
"1.3.6.1.4.1.311.2.1.4";
42 std::unique_ptr<Content>
clone()
const override {
50 return digest_algorithm_;
60 const std::string&
file()
const {
64 void print(std::ostream& os)
const override;
76 return content->
content_type() == SPC_INDIRECT_DATA_OBJID;
82 ALGORITHMS digest_algorithm_ = ALGORITHMS::UNKNOWN;
83 std::vector<uint8_t> digest_;
Definition ContentInfo.hpp:83
const oid_t & content_type() const
Definition ContentInfo.hpp:89
Definition ContentInfo.hpp:78
Definition SignatureParser.hpp:37
Definition SpcIndirectData.hpp:30
SpcIndirectData & operator=(const SpcIndirectData &)=default
ALGORITHMS digest_algorithm() const
Digest used to hash the file.
Definition SpcIndirectData.hpp:49
void accept(Visitor &visitor) const override
std::unique_ptr< Content > clone() const override
Definition SpcIndirectData.hpp:42
void print(std::ostream &os) const override
const std::string & file() const
Definition SpcIndirectData.hpp:60
SpcIndirectData(const SpcIndirectData &)=default
~SpcIndirectData() override=default
static bool classof(const ContentInfo::Content *content)
Definition SpcIndirectData.hpp:75
SpcIndirectData()
Definition SpcIndirectData.hpp:36
friend std::ostream & operator<<(std::ostream &os, const SpcIndirectData &content)
Definition SpcIndirectData.hpp:68
span< const uint8_t > digest() const
PE's authentihash.
Definition SpcIndirectData.hpp:56
Definition Visitor.hpp:224
ALGORITHMS
Cryptography algorithms.
Definition PE/enums.hpp:686
LIEF namespace.
Definition Abstract/Binary.hpp:32
tcb::span< ElementType, Extent > span
Definition span.hpp:22
#define LIEF_API
Definition visibility.h:41