srp

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 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 Client

type Client struct {
	A *big.Int
	// contains filtered or unexported fields
}

func NewClient

func NewClient(params Params, username string) *Client

func (*Client) ProcessChallenge

func (c *Client) ProcessChallenge(x *big.Int, salt []byte, B *big.Int) (m1 []byte, sessionKey []byte, err error)

func (*Client) PublicA

func (c *Client) PublicA() *big.Int

func (*Client) VerifyServer

func (c *Client) VerifyServer(m2 []byte) error

type Params

type Params struct {
	N *big.Int
	G *big.Int
}

func NewParams

func NewParams() Params

func (Params) DeriveX

func (p Params) DeriveX(salt []byte, passwordBytes []byte) *big.Int

func (Params) DeriveXWithUsername

func (p Params) DeriveXWithUsername(salt []byte, username string, password []byte) *big.Int

Jump to

Keyboard shortcuts

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