pgp

package
v0.1.1-0...-f7b4fde Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicKey

type PublicKey struct {
	// contains filtered or unexported fields
}

PublicKey Public Key that follows the PGP standard; supports both armored & binary detached signatures

func FetchPublicKey

func FetchPublicKey(ctx context.Context, url string) (*PublicKey, error)

FetchPublicKey implements pki.PublicKey interface

func NewPublicKey

func NewPublicKey(r io.Reader) (*PublicKey, error)

NewPublicKey implements the pki.PublicKey interface

func (PublicKey) CanonicalValue

func (k PublicKey) CanonicalValue() ([]byte, error)

CanonicalValue implements the pki.PublicKey interface

func (PublicKey) KeyRing

func (k PublicKey) KeyRing() (openpgp.KeyRing, error)

type Signature

type Signature struct {
	// contains filtered or unexported fields
}

Signature Signature that follows the PGP standard; supports both armored & binary detached signatures

func FetchSignature

func FetchSignature(ctx context.Context, url string) (*Signature, error)

FetchSignature implements pki.Signature interface

func NewSignature

func NewSignature(r io.Reader) (*Signature, error)

NewSignature creates and validates a PGP signature object

func (Signature) CanonicalValue

func (s Signature) CanonicalValue() ([]byte, error)

CanonicalValue implements the pki.Signature interface

func (Signature) Verify

func (s Signature) Verify(r io.Reader, k interface{}) error

Verify implements the pki.Signature interface

Jump to

Keyboard shortcuts

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