...

Package signappx

import "github.com/sassoftware/relic/lib/signappx"
Overview
Index

Overview ▾

Variables

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

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