...

Source file src/github.com/sassoftware/relic/lib/signappx/structs.go

Documentation: github.com/sassoftware/relic/lib/signappx

     1  //
     2  // Copyright (c) SAS Institute Inc.
     3  //
     4  // Licensed under the Apache License, Version 2.0 (the "License");
     5  // you may not use this file except in compliance with the License.
     6  // You may obtain a copy of the License at
     7  //
     8  //     http://www.apache.org/licenses/LICENSE-2.0
     9  //
    10  // Unless required by applicable law or agreed to in writing, software
    11  // distributed under the License is distributed on an "AS IS" BASIS,
    12  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  // See the License for the specific language governing permissions and
    14  // limitations under the License.
    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