authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-07-25 01:15:36+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-07-25 01:17:21+02:00
log2ae38cbd2599af06beebc4ae9e3cdbbbc6cefc89
treeb8c91eee259ae6f3da148eb2f633fb27acdd153d
parent783ad796565947e07430d0c73ab279020e5d9e74
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.macho: add encryption_info_command[_64]


1 files changed, 19 insertions(+), 0 deletions(-)

lib/std/macho.zig+19
...@@ -588,6 +588,25 @@ pub const rpath_command = extern struct {...@@ -588,6 +588,25 @@ pub const rpath_command = extern struct {
588 path: u32,588 path: u32,
589};589};
590590
591pub const encryption_info_command = extern struct {
592 cmd: LC = .ENCRYPTION_INFO,
593 cmdsize: u32 = @sizeOf(encryption_info_command),
594
595 cryptoff: u32,
596 cryptsize: u32,
597 cryptid: u32 = 0,
598};
599
600pub const encryption_info_command_64 = extern struct {
601 cmd: LC = .ENCRYPTION_INFO_64,
602 cmdsize: u32 = @sizeOf(encryption_info_command_64),
603
604 cryptoff: u32,
605 cryptsize: u32,
606 cryptid: u32 = 0,
607 _pad: u32 = 0,
608};
609
591/// The segment load command indicates that a part of this file is to be610/// The segment load command indicates that a part of this file is to be
592/// mapped into the task's address space. The size of this segment in memory,611/// mapped into the task's address space. The size of this segment in memory,
593/// vmsize, maybe equal to or larger than the amount to map from this file,612/// vmsize, maybe equal to or larger than the amount to map from this file,