srp

package
v0.0.0-...-f767ba8 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	SaltSize uint64      // size in bytes
	HashFcn  crypto.Hash // hash function

}

func (*Params) GetVerifier

func (p *Params) GetVerifier(salt []byte, username string, password string) ([]byte, error)

GetVerifier returns the verifier from the specified arguments and using the hashing function provided in the parameters. This function should only be used during the creation process of a new user and not for authentication.

func (*Params) NewSalt

func (p *Params) NewSalt() ([]byte, error)

NewSalt generates a new random salt of length specified by the SRP parameters.

Jump to

Keyboard shortcuts

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