signdeb

package
v7.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(r io.Reader, keyring openpgp.EntityList, skipDigest bool) (map[string]*pgptools.PgpSignature, error)

Extract and verify signatures from a Debian package. A keyring of known PGP certificates must be provided to validate the signatures; if the needed key is missing then an ErrNoKey value is returned.

Types

type DebSignature

type DebSignature struct {
	Info         PackageInfo
	CreationTime time.Time
	PatchSet     *binpatch.PatchSet
}

func Sign

func Sign(r io.Reader, signer *openpgp.Entity, opts crypto.SignerOpts, role string) (*DebSignature, error)

Sign a .deb file with the given PGP key. A role name is needed for the signature, e.g. "builder". Returns a structure holding a PatchSet that can be applied to the original file to add or replace the signature.

type PackageInfo

type PackageInfo struct {
	Package, Version, Arch string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL