generateClientCredentials method

  1. @override
BigInt? generateClientCredentials(
  1. Uint8List salt,
  2. Uint8List identity,
  3. Uint8List password
)
override

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

Implementation

@override
BigInt? generateClientCredentials(
    Uint8List salt, Uint8List identity, Uint8List password) {
  Future.wait([SRP6Util.calculateX(digest, N, salt, identity, password)])
      .then((value) => x = value[0]);
  a = selectPrivateValue();
  A = g.modPow(a!, N);
  return A;
}