LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Defines an entry in the array of images that an enclave can import. More...
#include <EnclaveImport.hpp>
Public Types | |
enum class | TYPE : uint32_t { NONE = 0x00000000 , UNIQUE_ID = 0x00000001 , AUTHOR_ID = 0x00000002 , FAMILY_ID = 0x00000003 , IMAGE_ID = 0x00000004 } |
using | short_id_t = std::array<uint8_t, 16> |
using | long_id_t = std::array<uint8_t, 32> |
Public Member Functions | |
EnclaveImport ()=default | |
EnclaveImport (const EnclaveImport &)=default | |
EnclaveImport & | operator= (const EnclaveImport &)=default |
EnclaveImport (EnclaveImport &&)=default | |
EnclaveImport & | operator= (EnclaveImport &&)=default |
TYPE | type () const |
The type of identifier of the image that must match the value in the import record. | |
uint32_t | min_security_version () const |
The minimum enclave security version that each image must have for the image to be imported successfully. The image is rejected unless its enclave security version is equal to or greater than the minimum value in the import record. Set the value in the import record to zero to turn off the security version check. | |
const long_id_t & | id () const |
The unique identifier of the primary module for the enclave, if the type() is TYPE::UNIQUE_ID. Otherwise, the author identifier of the primary module for the enclave. | |
const short_id_t & | family_id () const |
The family identifier of the primary module for the enclave. | |
const short_id_t & | image_id () const |
The image identifier of the primary module for the enclave. | |
uint32_t | import_name_rva () const |
The relative virtual address of a NULL-terminated string that contains the same value found in the import directory for the image. | |
const std::string & | import_name () const |
Resolved import name. | |
uint32_t | reserved () const |
Reserved. Should be 0. | |
EnclaveImport & | type (TYPE ty) |
EnclaveImport & | min_security_version (uint32_t value) |
EnclaveImport & | id (const long_id_t &value) |
EnclaveImport & | family_id (const short_id_t &value) |
EnclaveImport & | image_id (const short_id_t &value) |
EnclaveImport & | import_name_rva (uint32_t value) |
EnclaveImport & | reserved (uint32_t value) |
EnclaveImport & | import_name (std::string name) |
std::string | to_string () const |
Defines an entry in the array of images that an enclave can import.
using LIEF::PE::EnclaveImport::long_id_t = std::array<uint8_t, 32> |
using LIEF::PE::EnclaveImport::short_id_t = std::array<uint8_t, 16> |
|
strong |
|
default |
Referenced by EnclaveImport(), EnclaveImport(), family_id(), id(), image_id(), import_name(), import_name_rva(), min_security_version(), operator<<, operator=(), operator=(), reserved(), and type().
|
default |
References EnclaveImport().
|
default |
References EnclaveImport().
|
inline |
The family identifier of the primary module for the enclave.
|
inline |
References EnclaveImport().
|
inline |
The unique identifier of the primary module for the enclave, if the type() is TYPE::UNIQUE_ID. Otherwise, the author identifier of the primary module for the enclave.
|
inline |
References EnclaveImport().
|
inline |
The image identifier of the primary module for the enclave.
|
inline |
References EnclaveImport().
|
inline |
Resolved import name.
|
inline |
References EnclaveImport().
|
inline |
The relative virtual address of a NULL-terminated string that contains the same value found in the import directory for the image.
|
inline |
References EnclaveImport().
|
inline |
The minimum enclave security version that each image must have for the image to be imported successfully. The image is rejected unless its enclave security version is equal to or greater than the minimum value in the import record. Set the value in the import record to zero to turn off the security version check.
|
inline |
References EnclaveImport().
|
default |
References EnclaveImport().
|
default |
References EnclaveImport().
|
inline |
Reserved. Should be 0.
|
inline |
References EnclaveImport().
std::string LIEF::PE::EnclaveImport::to_string | ( | ) | const |
References LIEF_API.
Referenced by operator<<.
|
inline |
The type of identifier of the image that must match the value in the import record.
|
inline |
References EnclaveImport().