16#ifndef LIEF_MACHO_ENCRYPTION_INFO_COMMAND_H
17#define LIEF_MACHO_ENCRYPTION_INFO_COMMAND_H
20#include "LIEF/visibility.h"
21#include "LIEF/types.hpp"
23#include "LIEF/MachO/LoadCommand.hpp"
29struct encryption_info_command;
46 std::unique_ptr<LoadCommand> clone()
const override {
65 void crypt_offset(uint32_t offset) {
69 void crypt_size(uint32_t size) {
72 void crypt_id(uint32_t
id) {
76 void accept(Visitor& visitor)
const override;
78 std::ostream& print(std::ostream& os)
const override;
80 static bool classof(
const LoadCommand* cmd) {
81 const LoadCommand::TYPE type = cmd->command();
82 return type == LoadCommand::TYPE::ENCRYPTION_INFO ||
83 type == LoadCommand::TYPE::ENCRYPTION_INFO_64;
Class that represents the LC_ENCRYPTION_INFO / LC_ENCRYPTION_INFO_64 commands.
Definition EncryptionInfo.hpp:36
uint32_t crypt_offset() const
The beginning of the encrypted area.
Definition EncryptionInfo.hpp:51
uint32_t crypt_id() const
The encryption system. 0 means no encrypted.
Definition EncryptionInfo.hpp:61
uint32_t crypt_size() const
The size of the encrypted area.
Definition EncryptionInfo.hpp:56
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:36
LIEF namespace.
Definition Abstract/Binary.hpp:32