Versions in this module Expand all Collapse all v0 v0.1.2 Dec 23, 2020 Changes in this version + const RFC5054Group1024 + const RFC5054Group1536 + const RFC5054Group2048 + const RFC5054Group3072 + const RFC5054Group4096 + const RFC5054Group6144 + const RFC5054Group8192 + var KnownGroups = make(map[int]*Group) + var MinExponentSize = 32 + var MinGroupSize = 2048 + func KDFRFC5054(salt []byte, username string, password string) (x *big.Int) + func NumberFromString(s string) *big.Int + func PreparePassword(s string) string + type Group struct + ExponentSize int + Label string + func NewGroup() *Group + func (g *Group) Generator() *big.Int + func (g *Group) N() *big.Int + type SRP struct + func NewSRPClient(group *Group, x *big.Int, k *big.Int) *SRP + func NewSRPServer(group *Group, v *big.Int, k *big.Int) *SRP + func (s *SRP) EphemeralPublic() *big.Int + func (s *SRP) GoodClientProof(salt []byte, uname string, proof []byte) bool + func (s *SRP) GoodServerProof(proof []byte) bool + func (s *SRP) IsPublicValid(AorB *big.Int) bool + func (s *SRP) Key() ([]byte, error) + func (s *SRP) M(salt []byte, uname string) ([]byte, error) + func (s *SRP) ServerProof() ([]byte, error) + func (s *SRP) SetOthersPublic(AorB *big.Int) error + func (s *SRP) TestOnlyResetEphemeralPublic() + func (s *SRP) TestOnlyResetKey() + func (s *SRP) TestOnlySetEphemeralSecret(secret *big.Int) + func (s *SRP) Verifier() (*big.Int, error)