Go to the documentation of this file.
16#ifndef LIEF_PE_SPC_INDIRECT_DATA_H
17#define LIEF_PE_SPC_INDIRECT_DATA_H
31 friend class SignatureParser;
34 static constexpr auto SPC_INDIRECT_DATA_OBJID =
"1.3.6.1.4.1.311.2.1.4";
37 ContentInfo::Content(SPC_INDIRECT_DATA_OBJID)
40 SpcIndirectData&
operator=(
const SpcIndirectData&) =
default;
42 std::unique_ptr<Content>
clone()
const override {
43 return std::unique_ptr<Content>(
new SpcIndirectData{*
this});
50 return digest_algorithm_;
52 span<const uint8_t>
digest()
const {
60 const std::string&
file()
const {
64 void print(std::ostream& os)
const override;
66 void accept(Visitor& visitor)
const override;
75 static bool classof(
const ContentInfo::Content* content) {
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 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
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
ALGORITHMS
Cryptography algorithms.
Definition PE/enums.hpp:686
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41