HKDF

package
v0.0.0-...-1dd84db Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Derivate

func Derivate(
	size int,
	hashString string,
	secret []byte,
	salt []byte,
	info []byte) ([]byte, error)

Derivate derives a new key from the given secret.

It returns a key with the specified length and an error which is nil if nothing bad happened.

You need to provide a string specifying the hash function (supported:SHA512, SHA256). You also need to provide three byte slices: the secret, the salt, the info. They can also be nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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