diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/srp.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"} |