LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
LIEF::PE::Repro Class Reference

This class represents a reproducible build entry from the debug directory. (IMAGE_DEBUG_TYPE_REPRO). This entry is usually generated with the undocumented /Brepro linker flag. More...

#include <Repro.hpp>

Inheritance diagram for LIEF::PE::Repro:
Collaboration diagram for LIEF::PE::Repro:

Public Member Functions

 Repro ()
 
 Repro (std::vector< uint8_t > hash)
 
 Repro (const details::pe_debug &dbg, std::vector< uint8_t > hash)
 
 Repro (const Repro &other)=default
 
Reprooperator= (const Repro &other)=default
 
span< const uint8_t > hash () const
 The hash associated with the reproducible build.
 
span< uint8_t > hash ()
 
void hash (std::vector< uint8_t > h)
 
std::unique_ptr< Debugclone () const override
 
void accept (Visitor &visitor) const override
 
 ~Repro () override=default
 
- Public Member Functions inherited from LIEF::PE::Debug
 Debug ()=default
 
 Debug (TYPES type)
 
 Debug (const details::pe_debug &debug_s)
 
 Debug (const Debug &other)=default
 
Debugoperator= (const Debug &other)=default
 
 ~Debug () override=default
 
uint32_t characteristics () const
 Reserved should be 0.
 
uint32_t timestamp () const
 The time and date when the debug data was created.
 
uint16_t major_version () const
 The major version number of the debug data format.
 
uint16_t minor_version () const
 The minor version number of the debug data format.
 
TYPES type () const
 The format DEBUG_TYPES of the debugging information.
 
uint32_t sizeof_data () const
 Size of the debug data.
 
uint32_t addressof_rawdata () const
 Address of the debug data relative to the image base.
 
uint32_t pointerto_rawdata () const
 File offset of the debug data.
 
void characteristics (uint32_t characteristics)
 
void timestamp (uint32_t timestamp)
 
void major_version (uint16_t major_version)
 
void minor_version (uint16_t minor_version)
 
void sizeof_data (uint32_t sizeof_data)
 
void addressof_rawdata (uint32_t addressof_rawdata)
 
void pointerto_rawdata (uint32_t pointerto_rawdata)
 
- Public Member Functions inherited from LIEF::Object
 Object ()
 
 Object (const Object &other)
 
Objectoperator= (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 ()
 

Static Public Member Functions

static bool classof (const Debug *debug)
 

Additional Inherited Members

- Public Types inherited from LIEF::PE::Debug
enum class  TYPES {
  UNKNOWN = 0 , COFF = 1 , CODEVIEW = 2 , FPO = 3 ,
  MISC = 4 , EXCEPTION = 5 , FIXUP = 6 , OMAP_TO_SRC = 7 ,
  OMAP_FROM_SRC = 8 , BORLAND = 9 , RESERVED10 = 10 , CLSID = 11 ,
  VC_FEATURE = 12 , POGO = 13 , ILTCG = 14 , MPX = 15 ,
  REPRO = 16 , EX_DLLCHARACTERISTICS = 20
}
 The entry types. More...
 
- 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>>>
 

Detailed Description

This class represents a reproducible build entry from the debug directory. (IMAGE_DEBUG_TYPE_REPRO). This entry is usually generated with the undocumented /Brepro linker flag.

See: https://nikhilism.com/post/2020/windows-deterministic-builds/

Constructor & Destructor Documentation

◆ Repro() [1/4]

LIEF::PE::Repro::Repro ( )
inline

◆ Repro() [2/4]

LIEF::PE::Repro::Repro ( std::vector< uint8_t > hash)
inline

References LIEF::hash().

◆ Repro() [3/4]

LIEF::PE::Repro::Repro ( const details::pe_debug & dbg,
std::vector< uint8_t > hash )
inline

References LIEF::hash().

◆ Repro() [4/4]

LIEF::PE::Repro::Repro ( const Repro & other)
default

◆ ~Repro()

LIEF::PE::Repro::~Repro ( )
overridedefault

Member Function Documentation

◆ accept()

void LIEF::PE::Repro::accept ( Visitor & visitor) const
overridevirtual

Reimplemented from LIEF::PE::Debug.

◆ classof()

static bool LIEF::PE::Repro::classof ( const Debug * debug)
inlinestatic

◆ clone()

std::unique_ptr< Debug > LIEF::PE::Repro::clone ( ) const
inlineoverridevirtual

Reimplemented from LIEF::PE::Debug.

◆ hash() [1/3]

span< uint8_t > LIEF::PE::Repro::hash ( )
inline

◆ hash() [2/3]

span< const uint8_t > LIEF::PE::Repro::hash ( ) const
inline

The hash associated with the reproducible build.

◆ hash() [3/3]

void LIEF::PE::Repro::hash ( std::vector< uint8_t > h)
inline

◆ operator=()

Repro & LIEF::PE::Repro::operator= ( const Repro & other)
default

The documentation for this class was generated from the following file: