Versions in this module Expand all Collapse all v0 v0.2.0 Dec 1, 2018 v0.1.0 Nov 28, 2018 Changes in this version + func Auth1(privS *rsa.PrivateKey, user *User, msg1 AuthMsg1) (*AuthServerSession, AuthMsg2, error) + func Auth3(sess *AuthServerSession, msg3 AuthMsg3) (secret []byte, err error) + func AuthInit(username, password string) (*AuthClientSession, AuthMsg1, error) + func PwReg1(privS *rsa.PrivateKey, msg1 PwRegMsg1) (*PwRegServerSession, PwRegMsg2, error) + func PwRegInit(username, password string, bits int) (*PwRegClientSession, PwRegMsg1, error) + type AuthClientSession struct + type AuthMsg1 struct + A *big.Int + DhPubClient *big.Int + Username string + type AuthMsg2 struct + B *big.Int + DhMac []byte + DhPubServer *big.Int + DhSig []byte + EnvU []byte + V *big.Int + type AuthMsg3 struct + DhMac []byte + DhSig []byte + func Auth2(sess *AuthClientSession, msg2 AuthMsg2) (secret []byte, msg3 AuthMsg3, err error) + type AuthServerSession struct + type PwRegClientSession struct + type PwRegMsg1 struct + A *big.Int + R *big.Int + Username string + type PwRegMsg2 struct + B *big.Int + PubS *rsa.PublicKey + V *big.Int + type PwRegMsg3 struct + EnvU []byte + PubU *rsa.PublicKey + func PwReg2(sess *PwRegClientSession, msg2 PwRegMsg2) (PwRegMsg3, error) + type PwRegServerSession struct + type User struct + EnvU []byte + K *big.Int + PubU *rsa.PublicKey + Username string + V *big.Int + func PwReg3(sess *PwRegServerSession, msg3 PwRegMsg3) *User