vAgree.init(new MQVPrivateKeySpec(V1.getPrivate(), V2.getPrivate(), V2.getPublic()));
//
// agreement
//
uAgree.doPhase(new MQVPublicKeySpec(V1.getPublic(), V2.getPublic()), true);
vAgree.doPhase(new MQVPublicKeySpec(U1.getPublic(), U2.getPublic()), true);
BigInteger ux = new BigInteger(uAgree.generateSecret());
BigInteger vx = new BigInteger(vAgree.generateSecret());
if (!ux.equals(vx))