Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EllipticCurve ¶
type PWCrypto ¶
type PWCrypto struct { // Public variables Role int Uᵤ, Uᵥ *big.Int Vᵤ, Vᵥ *big.Int Xᵤ, Xᵥ *big.Int Yᵤ, Yᵥ *big.Int Pw []byte Vpwᵤ, Vpwᵥ *big.Int Upwᵤ, Upwᵥ *big.Int Aα []byte Aαᵤ, Aαᵥ *big.Int Zᵤ, Zᵥ *big.Int K []byte // contains filtered or unexported fields }
func InitCurve ¶
Init will take the secret weak passphrase (pw) to initialize the points on the elliptic curve. The role is set to either 0 for the sender or 1 for the recipient. The curve can be any elliptic curve.
func (*PWCrypto) Bytes ¶
Bytes just marshalls the PAKE structure so that private variables are hidden.
func (*PWCrypto) HaveSessionKey ¶
HaveSessionKey returns whether a session key has been generated
func (*PWCrypto) SessionKey ¶
SessionKey is returned, unless it is not generated in which is returns an error. This function does not check if it is verifies.
Click to show internal directories.
Click to hide internal directories.