internal

package
v0.0.0-...-7ee87ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

type Parameter uint8
const (
	Parameter_Argon2ID_High        Parameter = 0
	Parameter_Argon2ID_Low         Parameter = 1
	Parameter_Argon2ID_Mobile_High Parameter = 2
	Parameter_Argon2ID_Mobile_Low  Parameter = 3
	VSTRUCT_ENUM_Parameter_MAX               = 3
)

func (Parameter) Match

func (e Parameter) Match(
	onArgon2ID_High func(),
	onArgon2ID_Low func(),
	onArgon2ID_Mobile_High func(),
	onArgon2ID_Mobile_Low func(),
)

func (Parameter) MatchS

func (e Parameter) MatchS(s struct {
	onArgon2ID_High        func()
	onArgon2ID_Low         func()
	onArgon2ID_Mobile_High func()
	onArgon2ID_Mobile_Low  func()
})

func (Parameter) String

func (e Parameter) String() string

type PasswordHash

type PasswordHash []byte

func New_PasswordHash

func New_PasswordHash(Param Parameter, Salt []byte, Hash []byte) PasswordHash

func Serialize_PasswordHash

func Serialize_PasswordHash(dst PasswordHash, Param Parameter, Salt []byte, Hash []byte) PasswordHash

func (PasswordHash) Hash

func (s PasswordHash) Hash() []byte

func (PasswordHash) Param

func (s PasswordHash) Param() Parameter

func (PasswordHash) Salt

func (s PasswordHash) Salt() []byte

func (PasswordHash) String

func (s PasswordHash) String() string

func (PasswordHash) Vstruct_Validate

func (s PasswordHash) Vstruct_Validate() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL