Versions in this module Expand all Collapse all v0 v0.1.0 Oct 12, 2026 Changes in this version + var ErrInvalidArgument = errors.New("provider: invalid argument") + var ErrKeyNotFound = errors.New("provider: key not found") + var ErrUnsupportedAlgorithm = errors.New("provider: unsupported algorithm") + var ErrUnwrapFailed = errors.New("provider: unwrap failed") + var ErrVersionDestroyed = errors.New("provider: key version destroyed") + var ErrVersionNotFound = errors.New("provider: key version not found") + type KeyRef struct + ID envelope.ID + Provider string + ProviderRef string + func (r KeyRef) Validate() error + type KeySpec struct + Algorithm algorithm.ID + ID envelope.ID + Purpose string + type Provider interface + CreateKey func(ctx context.Context, spec KeySpec) (KeyRef, error) + Destroy func(ctx context.Context, ref KeyRef, version uint32) error + Health func(ctx context.Context) error + Name func() string + Rotate func(ctx context.Context, ref KeyRef) (version uint32, err error) + Unwrap func(ctx context.Context, ref KeyRef, version uint32, wrapped, aad []byte) ([]byte, error) + Wrap func(ctx context.Context, ref KeyRef, version uint32, dek, aad []byte) ([]byte, error)