Documentation ¶
Overview ¶
Package kdf contains useful key derivation functions.
Index ¶
Constants ¶
View Source
const (
// Default repititions to use to derive a key.
DefaultReps = 1972
)
Variables ¶
View Source
var ( // Default salt DefaultSalt = []byte{0x31, 0x41, 0x59, 0x26, 0x53, 0x59, 0xAB, 0x24} )
Functions ¶
func KDF ¶
KDF derives a 32 byte encryption key from plain by using salt and reps repititions. The larger reps is, the longer it takes to drive the key. For a given plain text, salt, and reps, KDF will consistently produce the same encryption key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.