mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 15:19:53 +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) {
|
static void updateIv(byte[] iv, long frame) {
|
||||||
// Encode the frame number as a uint32, leaving 2 bytes for the counter
|
// Encode the frame number as a uint32
|
||||||
ByteUtils.writeUint32(frame, iv, iv.length - 6);
|
ByteUtils.writeUint32(frame, iv, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user