Versions in this module Expand all Collapse all v1 v1.0.0 Nov 16, 2020 Changes in this version + func HashIdToHash(id byte) (h crypto.Hash, ok bool) + func HashIdToString(id byte) (name string, ok bool) + func HashToHashId(h crypto.Hash) (id byte, ok bool) + func Iterated(out []byte, h hash.Hash, in []byte, salt []byte, count int) + func Parse(r io.Reader) (f func(out, in []byte), err error) + func Salted(out []byte, h hash.Hash, in []byte, salt []byte) + func Serialize(w io.Writer, key []byte, rand io.Reader, passphrase []byte, c *Config) error + func Simple(out []byte, h hash.Hash, in []byte) + type Config struct + Hash crypto.Hash + S2KCount int + S2KMode uint8 + func (c *Config) EncodedCount() uint8 + type Params struct + func Generate(rand io.Reader, c *Config) (*Params, error) + func ParseIntoParams(r io.Reader) (params *Params, err error) + func (params *Params) Dummy() bool + func (params *Params) Function() (f func(out, in []byte), err error) + func (params *Params) Serialize(w io.Writer) (err error)