Versions in this module Expand all Collapse all v0 v0.0.1 Aug 28, 2024 Changes in this version + const DefaultIterations + const DefaultKeyLength + const DefaultSaltLength + const MinimumIterations + const MinimumPassphraseLength + type Config struct + HashFunction HashFunctionName + Iterations int + KeyLength int + Passphrase string + SaltLength int + func (c *Config) Build() (keyprovider.KeyProvider, keyprovider.KeyMeta, error) + func (c *Config) WithHashFunction(hashFunction HashFunctionName) *Config + func (c *Config) WithIterations(iterations int) *Config + func (c *Config) WithKeyLength(length int) *Config + func (c *Config) WithPassphrase(passphrase string) *Config + func (c *Config) WithSaltLength(length int) *Config + type Descriptor interface + TypedConfig func() *Config + func New() Descriptor + type HashFunction func() hash.Hash + type HashFunctionName string + const DefaultHashFunctionName + const SHA256HashFunctionName + const SHA512HashFunctionName + func (h HashFunctionName) Function() HashFunction + func (h HashFunctionName) Validate() error + type Metadata struct + HashFunction HashFunctionName + Iterations int + KeyLength int + Salt []byte