Versions in this module Expand all Collapse all v0 v0.0.6 Oct 15, 2026 Changes in this version + type CacheConfig struct + MaxEntries int + TTL time.Duration + type CachingKeyring struct + func NewCachingKeyring(inner Keyring, cfg CacheConfig) (*CachingKeyring, error) + func (c *CachingKeyring) ActiveKeyID() string + func (c *CachingKeyring) Close() + func (c *CachingKeyring) Invalidate() + func (c *CachingKeyring) Rewrap(ctx context.Context, fromKEKID, toKEKID string, ...) ([]byte, error) + func (c *CachingKeyring) Unwrap(ctx context.Context, kekID string, encryptedDEK, aad []byte) ([]byte, error) + func (c *CachingKeyring) Wrap(ctx context.Context, dek, aad []byte) (kekID string, encryptedDEK []byte, err error) + type Keyring interface + ActiveKeyID func() string + Rewrap func(ctx context.Context, fromKEKID, toKEKID string, ...) ([]byte, error) + Unwrap func(ctx context.Context, kekID string, encryptedDEK, aad []byte) (dek []byte, err error) + Wrap func(ctx context.Context, dek, aad []byte) (kekID string, encryptedDEK []byte, err error) + func NewKeyring(activeKeyID string, wrappers ...Wrapper) (Keyring, error) + type Rewrapper interface + Rewrap func(ctx context.Context, target Wrapper, encryptedDEK, sourceAAD, targetAAD []byte) ([]byte, error) + type Wrapper interface + ID func() string + Unwrap func(ctx context.Context, encryptedDEK, aad []byte) (dek []byte, err error) + Wrap func(ctx context.Context, dek, aad []byte) (encryptedDEK []byte, err error)