mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Encode the frame number at the start of the IV (easier to describe).
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user