}
encrypt.ev = ev;
encrypt.setHash(ev.getHash());
Buffer buf = new Buffer(256);
BufferHelper.writeFixInt32(buf, 1, true);
encrypt.encode(buf);
int tmp = buf.getWriteIndex();
int len = tmp - 4;
buf.setWriteIndex(0);
BufferHelper.writeFixInt32(buf, len, true);
buf.setWriteIndex(tmp);