Documentation ¶
Overview ¶
Package srp implements the Secure Remote Password following SRP-6a protocol design.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SRPClient ¶
type SRPClient struct { E []byte // email S []byte // salt A *big.Int // Public version of a K []byte // shared session key M []byte // The verification bytes used for prove client // contains filtered or unexported fields }
SRPClient defines a SRP client
func NewSRPClient ¶
NewSRPClient creates a SRP client
func (*SRPClient) CheckServer ¶
CheckServer checks whether the proof given by server is correct.
func (*SRPClient) GetVerifier ¶
GetVerifier calculates the SRP Verifier
type SRPServer ¶
type SRPServer struct { S []byte // salt B *big.Int // Public version of b K []byte // Commonly shared session key. M []byte // Key to verify client // contains filtered or unexported fields }
SRPServer defines the SRP server
Click to show internal directories.
Click to hide internal directories.