From 36b724b404ec8a02c807767edd6c50293680b86b Mon Sep 17 00:00:00 2001 From: siddharth Date: Sat, 14 May 2022 15:54:59 -0400 Subject: challeng: c36: implement logout --- lib/srp.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/srp.go b/lib/srp.go index ec3fed6..18cf5dd 100644 --- a/lib/srp.go +++ b/lib/srp.go @@ -259,6 +259,9 @@ func (u *SRPUser) LogIn() { } func (u *SRPUser) LogOut() { + u.b = nil // Reset secret ephemeral value + u.u = nil // Reset scrambling parameter. + u.sk = []byte{} // Reset session key u.loggedIn = false } -- cgit v1.2.3