...
Package signxap
Variables
var (
SpcUUIDSipInfoXap = []byte{0x6F, 0xA6, 0x08, 0xBA, 0x3B, 0x11, 0x58, 0x4D, 0x93, 0x29, 0xA1, 0xB3, 0x7A, 0xF3, 0x0F, 0x0E}
)
type XapDigest struct {
Hash crypto.Hash
Imprint []byte
PatchStart int64
PatchLen int64
}
func DigestXapTar(r io.Reader, hash crypto.Hash, doPageHash bool) (*XapDigest, error)
func (*XapDigest) Sign
¶
func (d *XapDigest) Sign(ctx context.Context, cert *certloader.Certificate) (*binpatch.PatchSet, *pkcs9.TimestampedSignature, error)
type XapSignature struct {
pkcs9.TimestampedSignature
Hash crypto.Hash
}
func Verify(r io.ReaderAt, size int64, skipDigests bool) (*XapSignature, error)