Class: MachO::EncryptionInfoCommand

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.

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(offset, cmd, cmdsize, cryptoff, cryptsize, cryptid) ⇒ EncryptionInfoCommand

Returns a new instance of EncryptionInfoCommand.



762
763
764
765
766
767
# File 'lib/macho/load_commands.rb', line 762

def initialize(offset, cmd, cmdsize, cryptoff, cryptsize, cryptid)
	super(offset, cmd, cmdsize)
	@cryptoff = cryptoff
	@cryptsize = cryptsize
	@cryptid = cryptid
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



756
757
758
# File 'lib/macho/load_commands.rb', line 756

def cryptid
  @cryptid
end

#cryptoffFixnum (readonly)

Returns the offset to the encrypted segment.

Returns:

  • (Fixnum)

    the offset to the encrypted segment



750
751
752
# File 'lib/macho/load_commands.rb', line 750

def cryptoff
  @cryptoff
end

#cryptsizeFixnum (readonly)

Returns the size of the encrypted segment.

Returns:

  • (Fixnum)

    the size of the encrypted segment



753
754
755
# File 'lib/macho/load_commands.rb', line 753

def cryptsize
  @cryptsize
end