Documentation ¶
Index ¶
Constants ¶
View Source
const MarshaledLen = 25
MarshaledLen is the length of the marshaled KDF parameters.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Argon2idParams ¶
Argon2idParams describes the difficulty and parallelism requirements for the Argin2id KDF.
func NewArgon2idParams ¶
func NewArgon2idParams(rand io.Reader) (*Argon2idParams, error)
NewArgon2idParams returns the minimum recommended parameters for the Argon2id KDF with a random salt. Randomness is read from rand.
The time and memory parameters may be increased by an application when stronger security requirements are desired, and additional memory is available.
func (*Argon2idParams) MarshalBinary ¶
func (p *Argon2idParams) MarshalBinary() ([]byte, error)
MarshalBinary implements encoding.BinaryMarshaler. The returned byte slice has length MarshaledLen.
func (*Argon2idParams) UnmarshalBinary ¶
func (p *Argon2idParams) UnmarshalBinary(data []byte) error
UnmarshalBinary implements encoding.BinaryUnmarshaler.
Click to show internal directories.
Click to hide internal directories.