#include <rich_header.h>
◆ richHeaderIterator
◆ addRecord()
void retdec::fileformat::RichHeader::addRecord |
( |
LinkerInfo & |
record | ) |
|
Add new record
- Parameters
-
record | Record which will be added |
◆ begin()
Get begin of records
- Returns
- Begin of rich header records
◆ clear()
void retdec::fileformat::RichHeader::clear |
( |
| ) |
|
Reset rich header and delete all records from it
◆ dump()
void retdec::fileformat::RichHeader::dump |
( |
std::string & |
dumpHeader | ) |
const |
Dump information about rich header
- Parameters
-
dumpHeader | Into this parameter is stored dump of rich header in an LLVM style |
◆ end()
Get end of records
- Returns
- End of rich header records
◆ getBytes()
const std::vector< std::uint8_t > & retdec::fileformat::RichHeader::getBytes |
( |
| ) |
const |
Returns the decrypted bytes of the rich header.
- Returns
- Decrypted bytes of rich header.
◆ getKey()
bool retdec::fileformat::RichHeader::getKey |
( |
unsigned long long & |
richKey | ) |
const |
Get key for decryption of header
- Parameters
-
richKey | Into this parameter is stored key of rich header |
- Returns
true
if key of rich header is detected, false
otherwise
If method returns false
, richKey is left unchanged
◆ getLastRecord()
const LinkerInfo * retdec::fileformat::RichHeader::getLastRecord |
( |
| ) |
const |
Get last record from header
- Returns
- Pointer to the last record from rich header
◆ getNumberOfRecords()
std::size_t retdec::fileformat::RichHeader::getNumberOfRecords |
( |
| ) |
const |
Get number of records in header
- Returns
- Number of records in header
◆ getOffset()
bool retdec::fileformat::RichHeader::getOffset |
( |
unsigned long long & |
richOffset | ) |
const |
Get offset of header in file
- Parameters
-
richOffset | Into this parameter is stored offset of rich header |
- Returns
true
if offset of rich header is detected, false
otherwise
If method returns false
, richOffset is left unchanged
◆ getRecord()
const LinkerInfo * retdec::fileformat::RichHeader::getRecord |
( |
std::size_t |
recordIndex | ) |
const |
Get record from header
- Parameters
-
recordIndex | Index of record in header (indexed from 0) |
- Returns
- Pointer to selected record or
nullptr
if index of record is incorrect
◆ getSignature()
std::string retdec::fileformat::RichHeader::getSignature |
( |
| ) |
const |
Get decrypted header as string
- Returns
- Decrypted header as string
◆ getSignatureLength()
std::size_t retdec::fileformat::RichHeader::getSignatureLength |
( |
| ) |
const |
Get length of signature
- Returns
- Length of signature
◆ getSuspicious()
bool retdec::fileformat::RichHeader::getSuspicious |
( |
| ) |
const |
Check if content of rich header is suspicious
- Returns
true
if content of rich header is suspicious, false
otherwise
◆ getValidStructure()
bool retdec::fileformat::RichHeader::getValidStructure |
( |
| ) |
const |
Check if header has valid structure
- Returns
true
if header has valid structure, false
otherwise
◆ hasRecords()
bool retdec::fileformat::RichHeader::hasRecords |
( |
| ) |
const |
Find out if there are any records
- Returns
true
if there are some records, false
otherwise
◆ invalidateKey()
void retdec::fileformat::RichHeader::invalidateKey |
( |
| ) |
|
Invalidate key of rich header
Instance method getKey() returns false
after invocation of this method. Key is possible to revalidate by invocation of method setKey().
◆ invalidateOffset()
void retdec::fileformat::RichHeader::invalidateOffset |
( |
| ) |
|
Invalidate offset of rich header
Instance method getOffset() returns false
after invocation of this method. Offset is possible to revalidate by invocation of method setOffset().
◆ setBytes()
void retdec::fileformat::RichHeader::setBytes |
( |
const std::vector< std::uint8_t > & |
richHeaderBytes | ) |
|
Sets the decrypted bytes of the rich header.
- Parameters
-
richHeaderBytes | Rich header bytes of the signature. |
◆ setKey()
void retdec::fileformat::RichHeader::setKey |
( |
unsigned long long |
richKey | ) |
|
Set key for decryption of header
- Parameters
-
richKey | Key for decryption of header |
◆ setOffset()
void retdec::fileformat::RichHeader::setOffset |
( |
unsigned long long |
richOffset | ) |
|
Set offset of header in file
- Parameters
-
richOffset | Offset of rich header in file |
◆ setSignature()
void retdec::fileformat::RichHeader::setSignature |
( |
std::string |
richSignature | ) |
|
Set signature
- Parameters
-
richSignature | Decrypted header |
◆ setSuspicious()
void retdec::fileformat::RichHeader::setSuspicious |
( |
bool |
richSuspicious | ) |
|
Set if content of rich header is suspicious
- Parameters
-
richSuspicious | true if content of rich header is suspicious, false otherwise |
◆ setValidStructure()
void retdec::fileformat::RichHeader::setValidStructure |
( |
bool |
richValidStructure | ) |
|
Set if rich header has valid structure
- Parameters
-
richValidStructure | true if rich header has valid structure, false otherwise |
◆ bytes
std::vector<std::uint8_t> retdec::fileformat::RichHeader::bytes |
|
private |
decrypted content of rich header
◆ header
std::vector<LinkerInfo> retdec::fileformat::RichHeader::header |
|
private |
◆ isKeyValid
bool retdec::fileformat::RichHeader::isKeyValid = false |
|
private |
◆ isOffsetValid
bool retdec::fileformat::RichHeader::isOffsetValid = false |
|
private |
◆ isSuspicious
bool retdec::fileformat::RichHeader::isSuspicious = false |
|
private |
true
if content of header is suspicious
◆ isValidStructure
bool retdec::fileformat::RichHeader::isValidStructure = false |
|
private |
true
if header has valid structure
◆ key
unsigned long long retdec::fileformat::RichHeader::key = 0 |
|
private |
◆ offset
unsigned long long retdec::fileformat::RichHeader::offset = 0 |
|
private |
offset of rich header in file
◆ signature
std::string retdec::fileformat::RichHeader::signature |
|
private |
header in string representation
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/fileformat/types/rich_header/rich_header.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/fileformat/types/rich_header/rich_header.cpp