calculateM1 static method

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

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

Implementation

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