package
1.101.9
Repository: https://github.com/vonage/gosrvlib.git
Documentation: pkg.go.dev

# Functions

New creates a new instance of Params with the provided options applied.
WithKeyLen overwrites the default length of the returned byte-slice that can be used as cryptographic key (Tag length).
WithMaxPasswordLength overwrites the default maximum length of the input password (Message string P).
WithMemory overwrites the default size of the memory in KiB.
WithMinPasswordLength overwrites the default maximum length of the input password (Message string P).
WithSaltLen overwrites the default length of the random password salt (Nonce S).
WithThreads overwrites the default number ot threads (p) Threads represents the degree of parallelism p that determines how many independent (but synchronizing) computational chains (lanes) can be run.
WithTime (t) is the default number of passes (iterations) over the memory.

# Constants

DefaultAlgo is the default algorithm used to hash the password.
DefaultKeyLen is the default length of the returned byte-slice that can be used as cryptographic key (Tag length).
DefaultMaxPasswordLength is the default maximum length of the input password (Message string P).
DefaultMemory is the default size of the memory in KiB.
DefaultMinPasswordLength is the default minimum length of the input password (Message string P).
DefaultSaltLen is the default length of the random password salt (Nonce S).
DefaultTime (t) is the default number of passes (iterations) over the memory.

# Structs

Hashed contains the hashed password key and hashing parameters.
Params contains the parameters for hashing the password.

# Type aliases

Option is a type alias for a function that configures the password hasher.