Documentation ¶
Overview ¶
Package kdf computes key derivation and stretching algorithms like bcrypt and argon2
Index ¶
- Variables
- func ARGON2I(reader io.Reader, params Params, format string) ([]byte, error)
- func ARGON2ID(reader io.Reader, params Params, format string) ([]byte, error)
- func BCRYPT(reader io.Reader, params Params, format string) ([]byte, error)
- func CRYPT(reader io.Reader, params Params, format string) ([]byte, error)
- func HKDF(reader io.Reader, params Params, format string) ([]byte, error)
- func PBKDF2(reader io.Reader, params Params, format string) ([]byte, error)
- func SCRYPT(reader io.Reader, params Params, format string) ([]byte, error)
- type Params
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultParams = Params{ Time: 3, Memory: 32 * 1024, Iter: 10000, Hmac: sha256.New, Scrypt: gsk.DefaultParams, Cost: 10, }
View Source
var KeyLen = 32
View Source
var SaltLen = 32
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.