kdf

package
v0.0.0-...-c9cba37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2018 License: Unlicense Imports: 6 Imported by: 0

Documentation

Overview

Package kdf is a Key Derivation Function that uses Blake2b hashes repeatedly to slow down brute force password search attacks, and used to symmetrically encrypt master keys and the like that secure data with a full 32 bit random ciphertext

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bench

func Bench(t time.Duration) (iter int64)

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 int64) (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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL