Versions in this module Expand all Collapse all v1 v1.0.1 Jun 2, 2026 Changes in this version + func DeriveRepoKey(masterKey, repoUUID string) (string, error) + func DeriveRepoKeys(masterKey string, rk KeyDerivationParams) (string, error) + func ValidateHMAC[T hmac.Signable](ctx context.Context, secret string, req T) (bool, error) + type KeyDerivationOptions func(*KeyDerivationParams) + func WithExtra(extra string) KeyDerivationOptions + func WithNameSpace(ns KeyNamespace) KeyDerivationOptions + type KeyDerivationParams struct + Extra string + NS KeyNamespace + RepoID string + Version int + func FindContextParams(ctx context.Context, persistence ports.Persistence, ...) (*KeyDerivationParams, error) + func NewDerivationParams(metadata *model.RepositoryMetadata, opts ...KeyDerivationOptions) *KeyDerivationParams + func (k KeyDerivationParams) Info() string + func (k KeyDerivationParams) Salt() []byte + func (k KeyDerivationParams) Valid() bool + type KeyNamespace string + const Global + const NSApply + const NSPlan