pgp

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clearsign

func Clearsign(msg io.Reader, key io.Reader) (string, error)

Clearsign will sign a message with a cleartext signature and return it as a string

func EntityFingerprint

func EntityFingerprint(entity *openpgp.Entity) string

EntityFingerprint returns the hex representation of the entity's PrimaryKey fingerprint.

func EntitySignatures

func EntitySignatures(entity *openpgp.Entity) []*packet.Signature

EntitySignatures returns all signatures of an entity

func ReadArmoredKeyRing

func ReadArmoredKeyRing(r io.Reader) (openpgp.EntityList, error)

ReadArmoredKeyRing retrieves a keyring from a reader

func ReadKeyRing added in v0.20.0

func ReadKeyRing(r io.Reader) (openpgp.EntityList, error)

ReadKeyRing reads one or more public/private keys.

Types

type Entity added in v0.11.0

type Entity = openpgp.Entity

Entity represents a PGP entity

func VerifySignatureClearsigned

func VerifySignatureClearsigned(msg io.Reader, keys io.Reader) (string, *Entity, error)

VerifySignatureClearsigned verifies the signature of a clearsigned gpg message, returning the message contents and the signer's entity.

func VerifySignatureClearsignedKeyRing

func VerifySignatureClearsignedKeyRing(msg io.Reader, keyring openpgp.KeyRing) (string, *Entity, error)

VerifySignatureClearsignedKeyRing verifies the signature of a clearsigned gpg message, returning the message contents and the signer's entity.

type EntityList added in v0.11.0

type EntityList = openpgp.EntityList

EntityList is a list of PGP entities

Directories

Path Synopsis
Package pgptest contains an armored PGP key to be used for testing.
Package pgptest contains an armored PGP key to be used for testing.

Jump to

Keyboard shortcuts

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