Fixes login using SRP6v2
This commit is contained in:
@@ -539,7 +539,7 @@ namespace BNetServer.REST
|
||||
{
|
||||
uint id = result.Read<uint>(0);
|
||||
|
||||
byte[] salt = RandomHelper.GetRandomBytes(SRP6.SaltLength);
|
||||
byte[] salt = new byte[0].GenerateRandomKey(SRP6.SaltLength);
|
||||
BigInteger x = new BigInteger(SHA256.HashData(salt.Combine(result.Read<string>(1).ToByteArray(true))), true);
|
||||
byte[] verifier = BigInteger.ModPow(BnetSRP6v1Base.g, x, BnetSRP6v1Base.N).ToByteArray(true, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user