PAKE solves the MITM issue of Diffie Hellman, so if they went the DH route, they probably used something along those lines.
80 karma · joined June 26, 2012
In general though, we find the code just kind of balloons if you use patterns like this everywhere.