package
0.0.0-20240723192418-397b19c8a77e
Repository: https://github.com/snapcore/secboot.git
Documentation: pkg.go.dev

# Functions

Benchmark computes the cost parameters for the desired duration and maximum memory cost.
Key derives a key of the desired length from the supplied passphrase and salt using the specified mode with the supplied cost parameters.
KeyDuration runs the key derivation with the built-in benchmarking values for the specified mode and supplied set of cost parameters, and then returns the amount of time taken to execute.

# Constants

ModeI is the data-independent mode of Argon2.
ModeID is the hybrid mode of Argon2.

# Structs

BenchmarkParams defines the parameters for benchmarking the Argon2 algorithm.
CostParams defines the cost parameters for key derivation using Argon2.

# Type aliases

KeyDurationFunc provides a mechanism to delegate key derivation measurements to a short-lived utility process during benchmarking.
Mode describes an Argon2 mode.