codesign

package
v0.0.0-...-b52216c Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdHocSign

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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