cocagne / pysrp

Python implementation of the Secure Remote Password protocol (SRP)
MIT License
116 stars 45 forks source link

g is padded #35

Closed masihyeganeh closed 6 years ago

masihyeganeh commented 6 years ago

Everywhere in rfc5054 the generator (g) is padded to be the same size of prime (N), but it wasn't in your HNxorg function. g is byte array and should not be treated like number. I checked it and this changed new function works exactly like Apple's SRP.

cocagne commented 6 years ago

patch contained in version 1.0.13 which is now up on pypi