Compute M2 for server authenticity check
Merge pull request #1 from chiiph/computeM2

Compute M2 for server authenticity check