Go to the documentation of this file.
16#ifndef LIEF_PE_REPRO_H
17#define LIEF_PE_REPRO_H
43 Debug{Debug::TYPES::REPRO}
46 Repro(std::vector<uint8_t> hash) :
47 Debug{Debug::TYPES::REPRO},
48 hash_{std::move(
hash)}
51 Repro(
const details::pe_debug& dbg, std::vector<uint8_t> hash, Section* sec) :
53 hash_{std::move(
hash)}
56 Repro(
const details::pe_debug& dbg, Section* sec) :
60 Repro(
const Repro& other) =
default;
65 span<const uint8_t>
hash()
const {
75 void hash(std::vector<uint8_t> h) {
79 std::unique_ptr<Debug>
clone()
const override {
80 return std::unique_ptr<Debug>(
new Repro(*
this));
84 return debug->type() == Debug::TYPES::REPRO;
87 void accept(Visitor& visitor)
const override;
94 std::vector<uint8_t> hash_;
Class that is used to rebuild a raw PE binary from a PE::Binary object.
Definition PE/Builder.hpp:45
This class represents a generic entry in the debug data directory. For known types,...
Definition debug/Debug.hpp:40
Main interface to parse PE binaries. In particular the static functions: Parser::parse should be used...
Definition PE/Parser.hpp:52
This class represents a reproducible build entry from the debug directory. (IMAGE_DEBUG_TYPE_REPRO)....
Definition Repro.hpp:36
span< uint8_t > hash()
Definition Repro.hpp:71
Repro & operator=(Repro &&other)=default
void hash(std::vector< uint8_t > h)
Definition Repro.hpp:75
void accept(Visitor &visitor) const override
std::string to_string() const override
Repro(std::vector< uint8_t > hash)
Definition Repro.hpp:46
static bool classof(const Debug *debug)
Definition Repro.hpp:83
~Repro() override=default
Repro(const Repro &other)=default
Repro(const details::pe_debug &dbg, Section *sec)
Definition Repro.hpp:56
span< const uint8_t > hash() const
The hash associated with the reproducible build.
Definition Repro.hpp:67
Repro()
Definition Repro.hpp:42
Repro & operator=(const Repro &other)=default
Repro(const details::pe_debug &dbg, std::vector< uint8_t > hash, Section *sec)
Definition Repro.hpp:51
std::unique_ptr< Debug > clone() const override
Definition Repro.hpp:79
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:36
Hash::value_type hash(const Object &v)
#define LIEF_API
Definition visibility.h:41