transit

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Seal

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

Seal is a seal that leverages Vault's Transit secret engine

func NewSeal

func NewSeal(logger log.Logger) *Seal

NewSeal creates a new transit seal

func (*Seal) Decrypt

func (s *Seal) Decrypt(_ context.Context, in *physical.EncryptedBlobInfo) (pt []byte, err error)

Decrypt is used to decrypt the ciphertext

func (*Seal) Encrypt

func (s *Seal) Encrypt(_ context.Context, plaintext []byte) (blob *physical.EncryptedBlobInfo, err error)

Encrypt is used to encrypt using Vaults Transit engine

func (*Seal) Finalize

func (s *Seal) Finalize(_ context.Context) error

Finalize is called during shutdown

func (*Seal) Init

func (s *Seal) Init(_ context.Context) error

Init is called during core.Initialize

func (*Seal) KeyID

func (s *Seal) KeyID() string

KeyID returns the last known key id.

func (*Seal) SealType

func (s *Seal) SealType() string

SealType returns the seal type for this particular seal implementation.

func (*Seal) SetConfig

func (s *Seal) SetConfig(config map[string]string) (map[string]string, error)

SetConfig processes the config info from the server config

Jump to

Keyboard shortcuts

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