Makwa mpriv = new Makwa(privKey, Makwa.SHA256,
preHash, postHashLength, workFactor);
String h1 = mpub.hashNewPassword("test1");
check(mpub.verifyPassword("test1", h1));
check(mpriv.verifyPassword("test1", h1));
check(!mpub.verifyPassword("test2", h1));
check(!mpriv.verifyPassword("test2", h1));
String h2 = mpriv.hashNewPassword("test1");
check(mpub.verifyPassword("test1", h2));
check(mpriv.verifyPassword("test1", h2));