Documentation
¶
Overview ¶
Package argon2 implements the functions, types, and interfaces for the module.
Index ¶
- func DefaultConfig() *types.Config
- func DefaultParams() interfaces.Params
- func NewArgon2(algType types.Type, config *types.Config) (interfaces.Cryptographic, error)
- func NewArgon2i(cfg *types.Config) (interfaces.Cryptographic, error)
- func NewArgon2id(cfg *types.Config) (interfaces.Cryptographic, error)
- func NewDefaultArgon2(config *types.Config) (interfaces.Cryptographic, error)
- func ResolveType(p types.Type) (types.Type, error)
- type Argon2
- type KeyFunc
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
DefaultConfig returns the default configuration for Argon2
func DefaultParams ¶
func DefaultParams() interfaces.Params
func NewArgon2 ¶ added in v0.3.18
func NewArgon2(algType types.Type, config *types.Config) (interfaces.Cryptographic, error)
NewArgon2 creates a new Argon2 crypto instance
func NewArgon2i ¶ added in v0.3.18
func NewArgon2i(cfg *types.Config) (interfaces.Cryptographic, error)
func NewArgon2id ¶ added in v0.3.18
func NewArgon2id(cfg *types.Config) (interfaces.Cryptographic, error)
func NewDefaultArgon2 ¶ added in v0.3.18
func NewDefaultArgon2(config *types.Config) (interfaces.Cryptographic, error)
Types ¶
type Argon2 ¶
type Argon2 struct {
// contains filtered or unexported fields
}
Argon2 implements the Argon2 hashing algorithm
func (*Argon2) HashWithSalt ¶
HashWithSalt implements the hash with salt method
type KeyFunc ¶ added in v0.3.18
type KeyFunc func(password []byte, salt []byte, time uint32, memory uint32, threads uint8, keyLen uint32) []byte
func ParseKeyFunc ¶ added in v0.3.18
type Params ¶
Params represents parameters for Argon2 algorithm
Click to show internal directories.
Click to hide internal directories.