Documentation ¶
Overview ¶
Package pbkdf2 implements PBKDF2 key derivation function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithHMAC ¶
func WithHMAC(hash func() hash.Hash, password []byte, salt []byte, iterations int, outlen int) []byte
WithHMAC derives key of length outlen from the provided password, salt, and the number of iterations using PKCS#5 PBKDF2 with the provided hash function in HMAC.
Caller is responsible to make sure that outlen < (2^32-1) * hash.Size().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.