From 2ca1e4a3fb16c67d41fc88d694eda53963eacf42 Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Mon, 30 May 2022 14:51:11 -0400 Subject: lib: srp: add SRPClientSession.SetSessionKey --- lib/srp.go | 4 ++++ 1 file changed, 4 insertions(+) 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"} -- cgit v1.2.3