pgp

package
v0.0.0-...-6aa8790 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTrustedPGPPublicKeys

func GetTrustedPGPPublicKeys(ctx context.Context, storage logical.Storage) ([]string, error)

func Paths

func Paths() []*framework.Path

func SignDataStream

func SignDataStream(detachedSignatureOut io.Writer, dataStream io.Reader, key *RSASigningKey) error

func VerifyPGPSignatures

func VerifyPGPSignatures(pgpSignatures []string, signedReaderFunc func() (io.Reader, error), pgpKeys []string, requiredNumberOfVerifiedSignatures int, logger hclog.Logger) ([]string, int, error)

Types

type RSASigningKey

type RSASigningKey struct {
	Entity *openpgp.Entity
}

func GenerateRSASigningKey

func GenerateRSASigningKey() (*RSASigningKey, error)

func ParseRSASigningKey

func ParseRSASigningKey(in io.Reader) (*RSASigningKey, error)

func (*RSASigningKey) SerializeFull

func (key *RSASigningKey) SerializeFull(out io.Writer) error

func (*RSASigningKey) SerializePrivateKey

func (key *RSASigningKey) SerializePrivateKey(out io.Writer) error

func (*RSASigningKey) SerializePublicKey

func (key *RSASigningKey) SerializePublicKey(out io.Writer) error

Jump to

Keyboard shortcuts

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