sign

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSigningSuperBlob

func GenerateSigningSuperBlob(id string, m *macho.File, signingMaterial pki.SigningMaterial, entitlementsData string, paddingTarget int) (int, []byte, error)

func UpdateSuperBlobOffsetReferences

func UpdateSuperBlobOffsetReferences(m *macho.File, numSbBytes uint64) error

Types

type SpecialSlot

type SpecialSlot struct {
	Type      macho.SlotType
	Blob      *macho.Blob
	HashBytes []byte
}

type SpecialSlotHashWriter

type SpecialSlotHashWriter struct {
	// contains filtered or unexported fields
}

SpecialSlotHashWriter writes the special slots in the right order and with the right content. Special slots have a type defined in quill/macho/blob_index.go, their hashes must be written from higher type to lower type. All slot types between CsSlotInfoslot (1) and the higher valued type must be written to the file. The hashes for the missing slots must be filled with 0s.

newCodeDirectory() also needs to know how many slots are present (including the 0-filled ones), and the total number of bytes which were written (to maintain an offset). It can use maxSlotType and totalBytesWritten for this.

func (*SpecialSlotHashWriter) Write

func (w *SpecialSlotHashWriter) Write(buffer *bytes.Buffer) error

Write will write all the special slots hashes to w.buffer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL