keyring

package
v0.0.0-...-9ceb186 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(root string, w io.Writer, email string) error

Export prints pubkey information associated with email to w.

func FindSecretEntity

func FindSecretEntity(root, id string) (*openpgp.Entity, error)

FindSecretEntity searches for id in the secret keyring.

func Import

func Import(root string, w io.Reader) error

Import parses public key information from w and adds it to the public keyring.

func ListKeys

func ListKeys(root string, w io.Writer) error

ListKeys prints keyring information to w.

func NewKeyPair

func NewKeyPair(root, name, email string) error

NewKeyPair creates and adds a new OpenPGP keypair to an existing keyring.

func Remove

func Remove(root string, id string) error

Remove removes public key information for a given id.

It skips public keys that have matching secret keys, and does not effect private keys.

func Sign

func Sign(key *openpgp.Entity, in io.Reader, sig io.Writer) error

Sign takes an id and a reader and writes the signature for that id to sig.

func Verify

func Verify(root string, file, sig io.Reader) error

Verify verifies a file's deatched signature.

Types

This section is empty.

Jump to

Keyboard shortcuts

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