Skip to content
Snippets Groups Projects
Commit 15d7fd57 authored by akwizgran's avatar akwizgran
Browse files

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

parent d7581586
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment