keyring

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Path = "core/keyring"
)

Variables

View Source
var (
	ErrMissingTerm     = errors.New("missing term", errors.CodePkgCryptoKeyringAeadForTermMissingTerm)
	ErrTermMisMatch    = errors.New("term mis-match", errors.CodePkgCryptoKeyringInitTermMisMatch)
	ErrGCMCreate       = errors.New("failed to initialize GCM mode", errors.CodePkgCryptoKeyringAeadFromKeyGCMCreate)
	ErrKeyringNotFound = errors.New("keyring not found", errors.CodePkgCryptoKeyringInitNotFound)
)

Functions

func AeadForTerm

func AeadForTerm(kr *vault.Keyring, term uint32) (cipher.AEAD, error)

func AeadFromKey

func AeadFromKey(key []byte) (cipher.AEAD, error)

func Init

func Init(ctx context.Context, b physical.Backend, mk []byte) (*vault.Keyring, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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