summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-06-30 21:40:00 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-06-30 21:40:00 -0400
commitc8dc45786cfb68434429e96b8b4eeb0d8481dce1 (patch)
treecf1be9591b2f96fe96ba717089cba54f2fb18168 /lib
parente7d85aa1b6e18fb68b23dfe34bf6cb970ba3d15f (diff)
lib: srp: SRPUser: add `GetScramblingParam`
Diffstat (limited to 'lib')
-rw-r--r--lib/srp.go4
1 files changed, 4 insertions, 0 deletions
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)