calculateSecret method

  1. @override
BigInt? calculateSecret(
  1. BigInt clientA
)
override

Processes the client's credentials. If valid the shared secret is generated and returned. @param clientA The client's credentials @return A shared secret BigInt @throws CryptoException If client's credentials are invalid

Implementation

@override
BigInt? calculateSecret(BigInt clientA) {
  A = SRP6Util.validatePublicValue(N, clientA);
  u = SRP6Util.calculateU(digest, N, A, B);
  S = _calculateS();

  return S;
}