pgp

package
v0.0.0-...-f220289 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCombinedKeyRing

func GetCombinedKeyRing() openpgp.KeyRing

GetCombinedKeyRing will return both the public and secret key rings combined

func GetPrivateKeyByEmail

func GetPrivateKeyByEmail(email string) *openpgp.Entity

GetPrivateKeyByEmail will return the key from the secret PGP ring (if available) matching the provided email address.

func GetPublicKeyByEmail

func GetPublicKeyByEmail(email string) *openpgp.Entity

GetPublicKeyByEmail will return the key from the pubpoic PGP ring (if available) matching the provided email address.

func LoadPrivateRing

func LoadPrivateRing(path string) error

LoadPrivateRing will open and parse the PGP keyring from the file path provided.

func LoadPublicRing

func LoadPublicRing(path string) error

LoadPublicRing will open and parse the PGP keyring from the file path provided.

func PrintPGPDebugInformation

func PrintPGPDebugInformation()

PrintPGPDebugInformation will output a debug log entry listing the keys it has read in from each keyring.

func PromptFunc

func PromptFunc(keys []openpgp.Key, symmetric bool) ([]byte, error)

PromptFunc is used to satisfy the openpgp package's requirements

Types

This section is empty.

Jump to

Keyboard shortcuts

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