Computes the final Key according to the standard routine: Key = H(S)
digest The Digest used as the hashing function H
N Modulus used to get the pad length
S The secret calculated by both sides
@return the final Key value.
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
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