Documentation
¶
Overview ¶
Package spake2plus implements RFC 9383 for testing.
Index ¶
- func Register(pw []byte, idProver []byte, idVerifier []byte) (pwVerifierW0 []byte, pwVerifierW1 []byte, registrationRecord []byte, err error)
- type Context
- func (ctx *Context) ComputeProverConfirmation(verifierShare []byte, claimedVerifierConfirm []byte) (proverConfirm []byte, sharedSecret []byte, err error)
- func (ctx *Context) GenerateProverShare() (share []byte, err error)
- func (ctx *Context) ProcessProverShare(proverShare []byte) (verifierShare []byte, verifierConfirm []byte, sharedSecret []byte, err error)
- func (ctx *Context) VerifyProverConfirmation(proverConfirm []byte) error
- type Role
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
IDProver []byte
IDVerifier []byte
Role Role
Lx, Ly *big.Int // L point
Mx, My *big.Int // M point
Nx, Ny *big.Int // N point
Xx, Xy *big.Int // X point
Yx, Yy *big.Int // Y point
Zx, Zy *big.Int // Z point
Vx, Vy *big.Int // V point
// contains filtered or unexported fields
}
func NewVerifier ¶
func (*Context) ComputeProverConfirmation ¶
func (ctx *Context) ComputeProverConfirmation( verifierShare []byte, claimedVerifierConfirm []byte, ) (proverConfirm []byte, sharedSecret []byte, err error)
computeProverConfirmation (Prover side)
func (*Context) GenerateProverShare ¶
func (*Context) ProcessProverShare ¶
func (*Context) VerifyProverConfirmation ¶
VerifyProverConfirmation (Verifier side)
Click to show internal directories.
Click to hide internal directories.