pgp

package
v0.2.0 Latest Latest
Warning

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

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

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

Signer exposes methods to sign payloads using PGP

func NewSigner

func NewSigner(secretPath string, logger *zap.SugaredLogger) (*Signer, error)

NewSigner returns a configured Signer

func (*Signer) PublicKey

func (s *Signer) PublicKey(ctx context.Context) (crypto.PublicKey, error)

required for the signature.Signer interface unimplemented, since we don't need the public key for signing

func (*Signer) Sign

func (s *Signer) Sign(ctx context.Context, rawPayload []byte) ([]byte, []byte, error)

func (*Signer) Type

func (s *Signer) Type() string

Jump to

Keyboard shortcuts

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