openpgp

package
v0.0.0-...-550d1a2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(w io.Writer, r io.Reader, kr openpgp.KeyRing) error

func Encrypt

func Encrypt(w io.Writer, r io.Reader, to []*openpgp.Entity, signed *openpgp.Entity) error

func ReadKeyring

func ReadKeyring(path, name string) openpgp.EntityList

Types

type Config

type Config struct {
	packet.Config

	// Expiry is the duration that the key will be valid for
	Expiry time.Duration
}

type Key

type Key struct {
	openpgp.Entity
}

Key represents an OpenPGP key

func CreateKey

func CreateKey(name, comment, email string, config *Config) (*Key, error)

func (*Key) Pubring

func (key *Key) Pubring() []byte

func (*Key) Secring

func (key *Key) Secring() []byte

Jump to

Keyboard shortcuts

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