Skip to main content

derive_sender_track_key

Function derive_sender_track_key 

Source
pub fn derive_sender_track_key(
    epoch_secret: &[u8; 32],
    publisher_kid: &[u8; 32],
    track: &str,
    session_id: &[u8; 16],
) -> Zeroizing<[u8; 32]>
Expand description

Derive an AEAD key unique to one (epoch secret, sender, track, session) domain. The CSPRNG session prevents a restarted or concurrent publisher from reusing a key when its in-memory sequence restarts.