Class: MachO::EncryptionInfoCommand
- Inherits:
-
LoadCommand
- Object
- MachOStructure
- LoadCommand
- MachO::EncryptionInfoCommand
- 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
-
#cryptid ⇒ Fixnum
readonly
The encryption system, or 0 if not encrypted yet.
-
#cryptoff ⇒ Fixnum
readonly
The offset to the encrypted segment.
-
#cryptsize ⇒ Fixnum
readonly
The size of the encrypted segment.
Attributes inherited from LoadCommand
Instance Method Summary collapse
-
#initialize(offset, cmd, cmdsize, cryptoff, cryptsize, cryptid) ⇒ EncryptionInfoCommand
constructor
A new instance of EncryptionInfoCommand.
Methods inherited from LoadCommand
Methods inherited from MachOStructure
Constructor Details
#initialize(offset, cmd, cmdsize, cryptoff, cryptsize, cryptid) ⇒ EncryptionInfoCommand
Returns a new instance of EncryptionInfoCommand.
904 905 906 907 908 909 |
# File 'lib/macho/load_commands.rb', line 904 def initialize(offset, cmd, cmdsize, cryptoff, cryptsize, cryptid) super(offset, cmd, cmdsize) @cryptoff = cryptoff @cryptsize = cryptsize @cryptid = cryptid end |
Instance Attribute Details
#cryptid ⇒ Fixnum (readonly)
Returns the encryption system, or 0 if not encrypted yet.
898 899 900 |
# File 'lib/macho/load_commands.rb', line 898 def cryptid @cryptid end |
#cryptoff ⇒ Fixnum (readonly)
Returns the offset to the encrypted segment.
892 893 894 |
# File 'lib/macho/load_commands.rb', line 892 def cryptoff @cryptoff end |
#cryptsize ⇒ Fixnum (readonly)
Returns the size of the encrypted segment.
895 896 897 |
# File 'lib/macho/load_commands.rb', line 895 def cryptsize @cryptsize end |