Documentation ¶ Index ¶ func Bench(t time.Duration) (iter int) func Gen(p *buf.Secure, iv *buf.Byte, iterations int) (C *buf.Secure, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Bench ¶ func Bench(t time.Duration) (iter int) Bench returns the number of iterations performed in a given time on the current hardware func Gen ¶ func Gen(p *buf.Secure, iv *buf.Byte, iterations int) (C *buf.Secure, err error) Gen takes a password and a random 12 byte initialisation vector and hashes it using Blake2b-384, returning a 32 byte ciphertext that is used to encrypt and decrypt the ciphertext from the crypt Types ¶ This section is empty. Source Files ¶ View all Source files kdf.go Click to show internal directories. Click to hide internal directories.