Package signappx
import "github.com/sassoftware/relic/lib/signappx"
- Overview
- Index
- Variables
- type AppxDigest
- func DigestAppxTar(r io.Reader, hash crypto.Hash, doPageHash bool) (*AppxDigest, error)
- func (i *AppxDigest) Sign(ctx context.Context, cert *certloader.Certificate) (patch *binpatch.PatchSet, priSig, catSig *pkcs9.TimestampedSignature, err error)
- type AppxSignature
- func Verify(r io.ReaderAt, size int64, skipDigests bool) (*AppxSignature, error)
- type ContentTypes
- func NewContentTypes() *ContentTypes
- func (c *ContentTypes) Add(name string)
- func (c *ContentTypes) Find(name string) string
- func (c *ContentTypes) Marshal() ([]byte, error)
- func (c *ContentTypes) Parse(blob []byte) error
Package files
blockmap.go
bundle.go
contenttypes.go
manifest.go
sign.go
structs.go
tarappx.go
verify.go
xml.go
zipmeta.go
Variables
var (
SpcUUIDSipInfoAppx = []byte{0x4B, 0xDF, 0xC5, 0x0A, 0x07, 0xCE, 0xE2, 0x4D, 0xB7, 0x6E, 0x23, 0xC8, 0x39, 0xA0, 0x9F, 0xD1}
)
type AppxDigest struct {
Hash crypto.Hash
}
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 struct {
Signature *pkcs9.TimestampedSignature
Name, DisplayName string
Version string
IsBundle bool
Hash crypto.Hash
HashValues map[string][]byte
Bundled map[string]*AppxSignature
}
func Verify(r io.ReaderAt, size int64, skipDigests bool) (*AppxSignature, error)
type ContentTypes struct {
ByExt map[string]string
ByOverride map[string]string
}
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