Debian Codegraph @

lib/signxap/structs.go

raw symbols SCIP
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 signxap
18
19 import "github.com/sassoftware/relic/v7/lib/authenticode"
20
21 const (
22 trailerMagic = 0x53706158 // XapS
23 )
24
25 var (
26 SpcUUIDSipInfoXap = []byte{0x6F, 0xA6, 0x08, 0xBA, 0x3B, 0x11, 0x58, 0x4D, 0x93, 0x29, 0xA1, 0xB3, 0x7A, 0xF3, 0x0F, 0x0E}
27 xapSipInfo = authenticode.SpcSipInfo{A: 1, UUID: SpcUUIDSipInfoXap}
28 )
29
30 type xapTrailer struct {
31 Magic uint32
32 Unknown1 uint16
33 TrailerSize uint32
34 }
35
36 type xapHeader struct {
37 Unknown1, Unknown2 uint16
38 SignatureSize uint32
39 }