pgp

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CompressionLevel   = 9
	SigKeyfiletimeSecs = uint32(86400 * 365)
)

Variables

This section is empty.

Functions

func DecodePrivateKey

func DecodePrivateKey(keyF io.Reader) (*packet.PrivateKey, error)

func DecodePrivateKeyFile

func DecodePrivateKeyFile(filepath string) (*packet.PrivateKey, error)

func DecodePublicKey

func DecodePublicKey(keyF io.Reader) (*packet.PublicKey, error)

func DecodePublicKeyFile

func DecodePublicKeyFile(filepath string) (*packet.PublicKey, error)

func NewPGPEntity

func NewPGPEntity(authorName, authorEmail, publicKey, privateKey string) (*openpgp.Entity, error)

NewPGPEntity returns a new openGPG Entity and possibly with the identity name and email, with the key pair of which the paths are specified. It possibly returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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