Class: MachO::EncryptionInfoCommand64

Inherits:
LoadCommand show all
Defined in:
lib/macho/load_commands.rb

Overview

A load command representing the offset to and size of an encrypted segment. Corresponds to LC_ENCRYPTION_INFO_64.

Instance Attribute Summary collapse

Attributes inherited from LoadCommand

#cmd, #cmdsize, #offset

Instance Method Summary collapse

Methods inherited from LoadCommand

new_from_bin, #to_s

Methods inherited from MachOStructure

bytesize, new_from_bin

Constructor Details

#initialize(raw_data, offset, cmd, cmdsize, cryptoff, cryptsize, cryptid) ⇒ EncryptionInfoCommand64

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of EncryptionInfoCommand64.



959
960
961
962
963
964
965
# File 'lib/macho/load_commands.rb', line 959

def initialize(raw_data, offset, cmd, cmdsize, cryptoff, cryptsize, cryptid)
  super(raw_data, offset, cmd, cmdsize)
  @cryptoff = cryptoff
  @cryptsize = cryptsize
  @cryptid = cryptid
  @pad = pad
end

Instance Attribute Details

#cryptidFixnum (readonly)

Returns the encryption system, or 0 if not encrypted yet.

Returns:

  • (Fixnum)

    the encryption system, or 0 if not encrypted yet



950
951
952
# File 'lib/macho/load_commands.rb', line 950

def cryptid
  @cryptid
end

#cryptoffFixnum (readonly)

Returns the offset to the encrypted segment.

Returns:

  • (Fixnum)

    the offset to the encrypted segment



944
945
946
# File 'lib/macho/load_commands.rb', line 944

def cryptoff
  @cryptoff
end

#cryptsizeFixnum (readonly)

Returns the size of the encrypted segment.

Returns:

  • (Fixnum)

    the size of the encrypted segment



947
948
949
# File 'lib/macho/load_commands.rb', line 947

def cryptsize
  @cryptsize
end

#padFixnum (readonly)

Returns 64-bit padding value.

Returns:

  • (Fixnum)

    64-bit padding value



953
954
955
# File 'lib/macho/load_commands.rb', line 953

def pad
  @pad
end