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.
Click to show internal directories.
Click to hide internal directories.