vault: github.com/hashicorp/vault/vault/seal/transit Index | Files

package transit

import "github.com/hashicorp/vault/vault/seal/transit"

Index

Package Files

transit.go transit_client.go

type Seal Uses

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

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

func NewSeal Uses

func NewSeal(logger log.Logger) *Seal

NewSeal creates a new transit seal

func (*Seal) Decrypt Uses

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

Decrypt is used to decrypt the ciphertext

func (*Seal) Encrypt Uses

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 Uses

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

Finalize is called during shutdown

func (*Seal) Init Uses

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

Init is called during core.Initialize

func (*Seal) KeyID Uses

func (s *Seal) KeyID() string

KeyID returns the last known key id.

func (*Seal) SealType Uses

func (s *Seal) SealType() string

SealType returns the seal type for this particular seal implementation.

func (*Seal) SetConfig Uses

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

SetConfig processes the config info from the server config

Package transit imports 15 packages (graph) and is imported by 1 packages. Updated 2019-09-10. Refresh now. Tools for package owners.