Versions in this module Expand all Collapse all v0 v0.9.1 Mar 17, 2016 Changes in this version + var DefaultParams = Params + var ErrInvalidHash = errors.New("scrypt: the provided hash is not in the correct format") + var ErrInvalidParams = errors.New("scrypt: the parameters provided are invalid") + var ErrMismatchedHashAndPassword = errors.New("scrypt: the hashed password does not match the hash of the given password") + func CompareHashAndPassword(hash []byte, password []byte) error + func GenerateFromPassword(password []byte, params Params) ([]byte, error) + func GenerateRandomBytes(n int) ([]byte, error) + type Params struct + DKLen int + N int + P int + R int + SaltLen int + func Calibrate(timeout time.Duration, memMiBytes int, params Params) (Params, error) + func Cost(hash []byte) (Params, error) + func (p *Params) Check() error