Versions in this module Expand all Collapse all v1 v1.0.0 Nov 6, 2017 Changes in this version + const ErrAdPtrMismatch + const ErrAdTooLong + const ErrAdTooShort + const ErrAllocateMemoryCbkNull + const ErrDecodingFail + const ErrDecodingLengthFail + const ErrEncodingFail + const ErrFreeMemoryCbkNull + const ErrIncorrectParameter + const ErrIncorrectType + const ErrLanesTooFew + const ErrLanesTooMany + const ErrMemoryAllocationError + const ErrMemoryTooLittle + const ErrMemoryTooMuch + const ErrMissingArgs + const ErrOutPtrMismatch + const ErrOutputPtrNull + const ErrOutputTooLong + const ErrOutputTooShort + const ErrPwdPtrMismatch + const ErrPwdTooLong + const ErrPwdTooShort + const ErrSaltPtrMismatch + const ErrSaltTooLong + const ErrSaltTooShort + const ErrSecretPtrMismatch + const ErrSecretTooLong + const ErrSecretTooShort + const ErrThreadFail + const ErrThreadsTooFew + const ErrThreadsTooMany + const ErrTimeTooLarge + const ErrTimeTooSmall + const ErrVerifyMismatch + const ModeArgon2d + const ModeArgon2i + const ModeArgon2id + const Version10 + const Version13 + func SecureZeroMemory(b []byte) + func VerifyEncoded(pwd []byte, encoded []byte) (bool, error) + type Config struct + HashLength uint32 + MemoryCost uint32 + Mode Mode + Parallelism uint32 + SaltLength uint32 + TimeCost uint32 + Version Version + func DefaultConfig() Config + func (c *Config) Hash(pwd []byte, salt []byte) (*Raw, error) + func (c *Config) HashEncoded(pwd []byte) (encoded []byte, err error) + func (c *Config) HashRaw(pwd []byte) (*Raw, error) + type Error C.int + func (e Error) Error() string + type Mode uint32 + func (m Mode) String() string + type Raw struct + Config Config + Hash []byte + Salt []byte + func Decode(encoded []byte) (*Raw, error) + func (raw *Raw) Encode() []byte + func (raw *Raw) Verify(pwd []byte) (bool, error) + type Version uint32 + func (v Version) String() string Incompatible versions in this module v2.0.0+incompatible Jul 13, 2018