1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! SFrame (RFC 9605) key-epoch helper.
//!
//! The SFU does not encrypt or decrypt payloads — SFrame encryption is
//! frame-level and end-to-end (publisher ↔ subscriber). The SFrame ciphertext,
//! including its in-payload header (which carries the KID), is forwarded opaquely
//! as part of the RTP payload. The SFU does NOT parse or re-attach any key-id RTP
//! *header extension*; if your clients use one, plumb the key epoch out-of-band
//! (e.g. a dedicated DataChannel or your signalling layer).
//!
//! [`KeyEpoch`] is a convenience newtype for that app-side epoch bookkeeping — it
//! is not read from or written to the RTP forwarding path by this crate.
/// An SFrame key-epoch (KID) value, for app-side epoch bookkeeping.
///
/// Maps to the `KID` (key identifier) field in SFrame (RFC 9605 §4.2).
/// Increment on each group key rotation; receivers use it to select the correct
/// decryption key. This crate does not read or write this value on the RTP
/// forwarding path — the application manages and distributes it out-of-band.
;