signing

package
v3.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: BSD-3-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSignEntities

func GetSignEntities(cpath string) ([]string, error)

GetSignEntities returns all signing entities for an ID/Groupid

func GetSignEntitiesFp

func GetSignEntitiesFp(fp *os.File) ([]string, error)

GetSignEntitiesFp returns all signing entities for an ID/Groupid

func Sign

func Sign(cpath, url string, id uint32, isGroup bool, keyIdx int, authToken string) error

Sign takes the path of a container and generates an OpenPGP signature block for its system partition. Sign uses the private keys found in the default location if available or helps the user by prompting with key generation configuration options. In its current form, Sign also pushes, when desired, public material to a key server.

func Verify

func Verify(cpath, url string, id uint32, isGroup bool, authToken string, noPrompt bool) error

Verify takes a container path and look for a verification block for a specified descriptor. If found, the signature block is used to verify the partition hash against the signer's version. Verify takes care of looking for OpenPGP keys in the default local store or looks it up from a key server if access is enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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