pgp

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 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 VerifySignatureClearsigned

func VerifySignatureClearsigned(msg io.Reader, keys io.Reader) (string, *openpgp.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, *openpgp.Entity, error)

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

Types

This section is empty.

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