Documentation ¶
Overview ¶
Package keyderivation provides functions to derive keys for symmetric encryption.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Blake2b256 = unkeyed(blake2b.New256) Blake2b384 = unkeyed(blake2b.New384) Blake2b512 = unkeyed(blake2b.New512) )
Unkeyed Blake2b Hashes for use in the hkdf constructor.
View Source
var Hash func() hash.Hash = Blake2b512
Hash is the hash function used in HKDF. If you want a different one assign it before calling HKDF or any function that uses it. I.e.:
keyderivation.Hash = sha512.New
Functions ¶
func Elliptic ¶
Elliptic perform anonymous Diffie-Hellman and then derives a 32 byte key from the resulting shared secret with HKDF. Salt and info may be nil but provide additional entropy for HKDF.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.