T3.2: Document timestamp_ms monotonic across rekey + test

This commit is contained in:
Siavash Sameni
2026-05-11 21:19:03 +04:00
parent f3398adb95
commit 1b4f7b0772
6 changed files with 144 additions and 4 deletions

View File

@@ -36,6 +36,10 @@ impl RekeyManager {
///
/// The old key is zeroized after the new key is derived.
/// Returns the new 32-byte symmetric key.
///
/// NOTE: Rekeying changes **only** the symmetric key material. Sequence
/// numbers and timestamps in the media framing layer (e.g. `MediaHeader`)
/// are untouched — they continue monotonically across the rekey boundary.
pub fn perform_rekey(
&mut self,
new_peer_pub: &[u8; 32],