Documentation ¶
Index ¶
Constants ¶
View Source
const (
// HashLen is the length of a marshaled Hash
HashLen = hashOffset + keyLen
)
Variables ¶
View Source
var ( ErrInvalidHashLength = errors.New("invalid hash length") ErrInvalidPassword = errors.New("invalid password") )
hash errors
Functions ¶
This section is empty.
Types ¶
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
Hash represents an argon2id key with all of its parameters
func (*Hash) MarshalBinary ¶
MarshalBinary encodes h into binary form and returns the result
func (*Hash) UnmarshalBinary ¶
UnmarshalBinary decodes data into h
Click to show internal directories.
Click to hide internal directories.