calculateM2 static method

BigInt calculateM2(
  1. Digest digest,
  2. BigInt N,
  3. BigInt? A,
  4. BigInt? M1,
  5. BigInt? S,
)

Computes the server evidence message (M2) according to the standard routine: M2 = H( A | M1 | S ) digest The Digest used as the hashing function H N Modulus used to get the pad length A The public client value M1 The client evidence message S The secret calculated by both sides @return M2 The calculated server evidence message

Implementation

static BigInt calculateM2(
    Digest digest, BigInt N, BigInt? A, BigInt? M1, BigInt? S) {
  return hashPaddedTriplet(digest, N, A, M1, S);
}