calculateM1 static method
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);
}