From c8dc45786cfb68434429e96b8b4eeb0d8481dce1 Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Thu, 30 Jun 2022 21:40:00 -0400 Subject: lib: srp: SRPUser: add `GetScramblingParam` --- lib/srp.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/srp.go b/lib/srp.go index 2c165fc..21df3bb 100644 --- a/lib/srp.go +++ b/lib/srp.go @@ -233,6 +233,10 @@ func (u *SRPUser) SetScramblingParamSimple() error { return nil } +func (u *SRPUser) GetScramblingParam() []byte { + return u.u.Bytes() +} + func (u *SRPUser) ComputeSessionKey(a *big.Int) error { // v^u vu := new(big.Int) -- cgit v1.2.3