signappx

package
v7.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SpcUUIDSipInfoAppx = []byte{0x4B, 0xDF, 0xC5, 0x0A, 0x07, 0xCE, 0xE2, 0x4D, 0xB7, 0x6E, 0x23, 0xC8, 0x39, 0xA0, 0x9F, 0xD1}
)

Functions

This section is empty.

Types

type AppxDigest

type AppxDigest struct {
	Hash crypto.Hash
	// contains filtered or unexported fields
}

func DigestAppxTar

func DigestAppxTar(r io.Reader, hash crypto.Hash, doPageHash bool) (*AppxDigest, error)

func (*AppxDigest) Sign

func (i *AppxDigest) Sign(ctx context.Context, cert *certloader.Certificate) (patch *binpatch.PatchSet, priSig, catSig *pkcs9.TimestampedSignature, err error)

type AppxSignature

type AppxSignature struct {
	Signature         *pkcs9.TimestampedSignature
	Name, DisplayName string
	Version           string
	IsBundle          bool
	Hash              crypto.Hash
	HashValues        map[string][]byte
	Bundled           map[string]*AppxSignature
}

func Verify

func Verify(r io.ReaderAt, size int64, skipDigests bool) (*AppxSignature, error)

type ContentTypes

type ContentTypes struct {
	ByExt      map[string]string
	ByOverride map[string]string
}

func NewContentTypes

func NewContentTypes() *ContentTypes

func (*ContentTypes) Add

func (c *ContentTypes) Add(name string)

func (*ContentTypes) Find

func (c *ContentTypes) Find(name string) string

func (*ContentTypes) Marshal

func (c *ContentTypes) Marshal() ([]byte, error)

func (*ContentTypes) Parse

func (c *ContentTypes) Parse(blob []byte) error

Jump to

Keyboard shortcuts

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