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.
Everywhere in rfc5054 the generator (
g
) is padded to be the same size of prime (N
), but it wasn't in yourHNxorg
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.