...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package signappx
18
19 import (
20 "archive/zip"
21 "crypto"
22
23 "github.com/sassoftware/relic/lib/pkcs9"
24 )
25
26 const (
27 appxSignature = "AppxSignature.p7x"
28 appxCodeIntegrity = "AppxMetadata/CodeIntegrity.cat"
29 appxBlockMap = "AppxBlockMap.xml"
30 appxManifest = "AppxManifest.xml"
31 appxContentTypes = "[Content_Types].xml"
32
33 bundleManifestFile = "AppxMetadata/AppxBundleManifest.xml"
34 )
35
36 type AppxSignature struct {
37 Signature *pkcs9.TimestampedSignature
38 Name, DisplayName string
39 Version string
40 IsBundle bool
41 Hash crypto.Hash
42 HashValues map[string][]byte
43 Bundled map[string]*AppxSignature
44 }
45
46 type zipFiles map[string]*zip.File
47
View as plain text