LIEF: Library to Instrument Executable Formats Version 0.16.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_MACHO_ENCRYPTION_INFO_COMMAND_H
17#define LIEF_MACHO_ENCRYPTION_INFO_COMMAND_H
28struct encryption_info_command;
40 EncryptionInfo&
operator=(
const EncryptionInfo& copy) =
default;
45 std::unique_ptr<LoadCommand>
clone()
const override {
46 return std::unique_ptr<EncryptionInfo>(
new EncryptionInfo(*
this));
75 void accept(Visitor& visitor)
const override;
77 std::ostream&
print(std::ostream& os)
const override;
79 static bool classof(
const LoadCommand* cmd) {
80 const LoadCommand::TYPE type = cmd->
command();
81 return type == LoadCommand::TYPE::ENCRYPTION_INFO ||
82 type == LoadCommand::TYPE::ENCRYPTION_INFO_64;
Class that represents the LC_ENCRYPTION_INFO / LC_ENCRYPTION_INFO_64 commands.
Definition EncryptionInfo.hpp:35
void accept(Visitor &visitor) const override
~EncryptionInfo() override=default
uint32_t crypt_offset() const
The beginning of the encrypted area.
Definition EncryptionInfo.hpp:50
EncryptionInfo & operator=(const EncryptionInfo ©)=default
uint32_t crypt_id() const
The encryption system. 0 means no encrypted.
Definition EncryptionInfo.hpp:60
void crypt_offset(uint32_t offset)
Definition EncryptionInfo.hpp:64
void crypt_id(uint32_t id)
Definition EncryptionInfo.hpp:71
EncryptionInfo(const details::encryption_info_command &cmd)
uint32_t crypt_size() const
The size of the encrypted area.
Definition EncryptionInfo.hpp:55
static bool classof(const LoadCommand *cmd)
Definition EncryptionInfo.hpp:79
EncryptionInfo(const EncryptionInfo ©)=default
std::unique_ptr< LoadCommand > clone() const override
Definition EncryptionInfo.hpp:45
void crypt_size(uint32_t size)
Definition EncryptionInfo.hpp:68
std::ostream & print(std::ostream &os) const override
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:37
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:124
Definition endianness_support.hpp:59
Namespace related to the LIEF's Mach-O module.
Definition Abstract/Header.hpp:36
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41