srp

package
v0.0.0-...-13cc612 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: AGPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(u, p string) string

Types

type SRP

type SRP struct {
	// large safe prime number
	N *big.Int
	// contains filtered or unexported fields
}

func New

func New() SRP

func (*SRP) ComputeVerifier

func (srp *SRP) ComputeVerifier(rI string)

func (*SRP) GenerateSalt

func (srp *SRP) GenerateSalt() error

func (*SRP) GetSalt

func (srp *SRP) GetSalt() string

func (*SRP) GetVerifier

func (srp *SRP) GetVerifier() string

func (*SRP) ProofVerifier

func (srp *SRP) ProofVerifier(v string) bool

func (*SRP) SetSalt

func (srp *SRP) SetSalt(s string)

func (*SRP) SetVerifier

func (srp *SRP) SetVerifier(v string)

Jump to

Keyboard shortcuts

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