diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-05-30 14:51:11 -0400 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-05-30 14:51:11 -0400 |
commit | 2ca1e4a3fb16c67d41fc88d694eda53963eacf42 (patch) | |
tree | fd241db906124c7b9e76b7a7bb90e3a8eff156dc /lib | |
parent | 7b95608d42cf6688e7b01bd1b87b9178f26d5a14 (diff) |
lib: srp: add SRPClientSession.SetSessionKey
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"} |