Encode the frame number at the start of the IV (easier to describe).

This commit is contained in:
akwizgran
2012-03-29 19:38:53 +01:00
parent d7581586fd
commit 15d7fd5796

View File

@@ -13,7 +13,7 @@ class IvEncoder {
}
static void updateIv(byte[] iv, long frame) {
// Encode the frame number as a uint32, leaving 2 bytes for the counter
ByteUtils.writeUint32(frame, iv, iv.length - 6);
// Encode the frame number as a uint32
ByteUtils.writeUint32(frame, iv, 0);
}
}