codesign

package
v1.1.124 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign added in v1.1.119

func Sign(r io.Reader, config *Config) ([]byte, error)

Types

type CodeSignature added in v1.1.119

type CodeSignature struct {
	CodeDirectories []types.CodeDirectory `json:"code_directories,omitempty"`
	Requirements    []types.Requirement   `json:"requirements,omitempty"`
	CMSSignature    []byte                `json:"cms_signature,omitempty"`
	Entitlements    string                `json:"entitlements,omitempty"`
	EntitlementsDER []byte                `json:"entitlements_der,omitempty"`
	Errors          []error               `json:"errors,omitempty"`
}

CodeSignature object

func ParseCodeSignature

func ParseCodeSignature(cmddat []byte) (*CodeSignature, error)

ParseCodeSignature parses the LC_CODE_SIGNATURE data

type Config added in v1.1.123

type Config struct {
	ID                      string
	TeamID                  string
	IsMain                  bool
	Flags                   types.CDFlag
	CodeSize                uint64
	TextOffset              uint64
	TextSize                uint64
	NSpecialSlots           uint32
	SpecialSlots            []types.SpecialSlot
	InfoPlist               []byte
	Entitlements            []byte
	EntitlementsDER         []byte
	EntitlementsSlotHash    []byte
	EntitlementsDERSlotHash []byte
	SignerFunction          func([]byte) ([]byte, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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