MCPcopy
hub / github.com/smallstep/cli / KDF

FuncType KDF

internal/kdf/kdf.go:20–20  ·  view source on GitHub ↗

KDF is the type that all the key derivation functions implements. The current methods uses safe default values, but future improvements can add functional options to be able to use custom settings.

func(password []byte) (string, error)

Source from the content-addressed store, hash-verified

18// current methods uses safe default values, but future improvements can add
19// functional options to be able to use custom settings.
20type KDF func(password []byte) (string, error)
21
22// Scrypt uses scrypt-32768 to derive the given password. Returns the hash
23// using the PHC string format.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected