generateServerCredentials method

  1. @override
BigInt? generateServerCredentials()
override

Generates the server's credentials that are to be sent to the client. @return The server's public value

Implementation

@override
BigInt? generateServerCredentials() {
  var k = SRP6Util.calculateK(digest, N, g);
  b = selectPrivateValue();
  B = (k * v + g.modPow(b!, N)) % N;

  return B;
}