Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdHocSign ¶ added in v1.1.58
func AdHocSign(out []byte, data io.Reader, id string, codeSize, textOff, textSize int64, isMain bool)
AdHocSign generates an ad-hoc code signature and writes it to out. out must have length at least Size(codeSize, id). data is the file content without the signature, of size codeSize. textOff and textSize is the file offset and size of the text segment. isMain is true if this is a main executable. id is the identifier used for signing (a field in CodeDirectory blob, which has no significance in ad-hoc signing). Similar to: `codesign --force --deep -s - MyApp.app`
func ParseCodeSignature ¶
func ParseCodeSignature(cmddat []byte) (*types.CodeSignature, error)
ParseCodeSignature parses the LC_CODE_SIGNATURE data
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.