md5.update(masterSecret, 0, masterSecret.length);
byte[] tmp = new byte[sha1.getDigestSize()];
sha1.doFinal(tmp, 0);
md5.update(tmp, 0, tmp.length);
tmp = new byte[md5.getDigestSize()];
md5.doFinal(tmp, 0);
// Write out a block of key data
out.write(tmp, 0, tmp.length);
turn++;