pgp

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt added in v0.3.2

func Decrypt(agent string, input io.Reader, output io.Writer, key *PrivateKey) error

func DecryptWithGPG

func DecryptWithGPG(gpg string, input io.Reader, output io.Writer) error

func Encrypt

func Encrypt(input io.Reader, output io.Writer, keys []*PublicKey) error

func GetRecipientKeyIdsForEncryptedMessage

func GetRecipientKeyIdsForEncryptedMessage(input io.Reader) ([]uint64, error)

Types

type PrivateKey added in v0.3.2

type PrivateKey struct {
	Entity *openpgp.Entity
}

func LoadASCIIArmoredPrivateKey added in v0.3.2

func LoadASCIIArmoredPrivateKey(input io.Reader) (PrivateKey, error)

type PublicKey

type PublicKey struct {
	Alias  string
	Entity *openpgp.Entity
}

func LoadASCIIArmoredPublicKey

func LoadASCIIArmoredPublicKey(alias string, input io.Reader) (PublicKey, error)

Jump to

Keyboard shortcuts

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