| ... | @@ -102,7 +102,6 @@ pub fn calcAdhocSignature(self: *CodeSignature, bin_file: *const MachO) !void { | ... | @@ -102,7 +102,6 @@ pub fn calcAdhocSignature(self: *CodeSignature, bin_file: *const MachO) !void { |
| 102 | }; | 102 | }; |
| 103 | | 103 | |
| 104 | const total_pages = mem.alignForward(file_size, page_size) / page_size; | 104 | const total_pages = mem.alignForward(file_size, page_size) / page_size; |
| 105 | log.debug("Total file size: {}; total number of pages: {}\n", .{ file_size, total_pages }); | | |
| 106 | | 105 | |
| 107 | var hash: [hash_size]u8 = undefined; | 106 | var hash: [hash_size]u8 = undefined; |
| 108 | var buffer = try bin_file.base.allocator.alloc(u8, page_size); | 107 | var buffer = try bin_file.base.allocator.alloc(u8, page_size); |
| ... | @@ -129,7 +128,6 @@ pub fn calcAdhocSignature(self: *CodeSignature, bin_file: *const MachO) !void { | ... | @@ -129,7 +128,6 @@ pub fn calcAdhocSignature(self: *CodeSignature, bin_file: *const MachO) !void { |
| 129 | assert(fsize <= len); | 128 | assert(fsize <= len); |
| 130 | | 129 | |
| 131 | Sha256.hash(buffer[0..fsize], &hash, .{}); | 130 | Sha256.hash(buffer[0..fsize], &hash, .{}); |
| 132 | log.debug("Calculated hash for page 0x{x}-0x{x}: 0x{x}\n", .{ fstart, fstart + fsize, hash[0..] }); | | |
| 133 | | 131 | |
| 134 | cdir.data.appendSliceAssumeCapacity(hash[0..]); | 132 | cdir.data.appendSliceAssumeCapacity(hash[0..]); |
| 135 | cdir.inner.nCodeSlots += 1; | 133 | cdir.inner.nCodeSlots += 1; |