calculateClientEvidenceMessage method

  1. @override
BigInt? calculateClientEvidenceMessage()
override

Computes the client evidence message M1 using the previously received values. To be called after calculating the secret S. returns M1: the client side generated evidence message throws Exception

Implementation

@override
BigInt? calculateClientEvidenceMessage() {
  // Verify pre-requirements
  if (A == null || B == null || S == null) {
    throw Exception(
        'Impossible to compute M1: some data are missing from the previous operations (A,B,S)');
  }
  // compute the client evidence message 'M1'
  M1 = SRP6Util.calculateM1(digest, N, A, B, S);
  return M1;
}