From 2ae38cbd2599af06beebc4ae9e3cdbbbc6cefc89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 25 Jul 2026 01:15:36 +0200 Subject: [PATCH] std.macho: add encryption_info_command[_64] --- lib/std/macho.zig | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/std/macho.zig b/lib/std/macho.zig index 9fdce9dd6605f450ab7eb9fee2b19b4f3787783d..48804cf7b1ccb51e8a37052686d0a9afe670d116 100644 --- a/lib/std/macho.zig +++ b/lib/std/macho.zig @@ -588,6 +588,25 @@ pub const rpath_command = extern struct { path: u32, }; +pub const encryption_info_command = extern struct { + cmd: LC = .ENCRYPTION_INFO, + cmdsize: u32 = @sizeOf(encryption_info_command), + + cryptoff: u32, + cryptsize: u32, + cryptid: u32 = 0, +}; + +pub const encryption_info_command_64 = extern struct { + cmd: LC = .ENCRYPTION_INFO_64, + cmdsize: u32 = @sizeOf(encryption_info_command_64), + + cryptoff: u32, + cryptsize: u32, + cryptid: u32 = 0, + _pad: u32 = 0, +}; + /// The segment load command indicates that a part of this file is to be /// mapped into the task's address space. The size of this segment in memory, /// vmsize, maybe equal to or larger than the amount to map from this file, -- 2.54.0