summaryrefslogtreecommitdiffstats
path: root/lib/srp.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/srp.go')
-rw-r--r--lib/srp.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/srp.go b/lib/srp.go
index e593715..6fd8111 100644
--- a/lib/srp.go
+++ b/lib/srp.go
@@ -403,6 +403,10 @@ func (s *SRPClientSession) ComputeSessionKey(salt []byte,
return nil
}
+func (s *SRPClientSession) SetSessionKey(key []byte) {
+ s.sk = key
+}
+
func (s *SRPClientSession) SessionKeyMac(salt []byte) ([]byte, error) {
if len(s.sk) < 1 {
return nil, CPError{"sk is invalid"}