SessionTag tag = (SessionTag) iter.next();
System.arraycopy(tag.getData(), 0, aesData, cur, SessionTag.BYTE_LENGTH);
cur += SessionTag.BYTE_LENGTH;
}
DataHelper.toLong(aesData, cur, 4, data.length);
<BUG>cur += 4;
Hash hash = _context.sha().calculateHash(data);
System.arraycopy(hash.getData(), 0, aesData, cur, Hash.HASH_LENGTH);</BUG>
cur += Hash.HASH_LENGTH;
if (newKey == null) {

SessionTag tag = (SessionTag) iter.next();
System.arraycopy(tag.getData(), 0, aesData, cur, SessionTag.BYTE_LENGTH);
cur += SessionTag.BYTE_LENGTH;
}
DataHelper.toLong(aesData, cur, 4, data.length);
cur += 4;
_context.sha().calculateHash(data, 0, data.length, aesData, cur);
cur += Hash.HASH_LENGTH;
if (newKey == null) {
