HKDF is HKDF-SHA256 with media_secret used directly as the PRK (Expand
only, no Extract). The key is deterministic for a given source epoch + file.
The source epoch is the MLS epoch of the application message that carried the
attachment. The caller MUST pass the ClientState for that epoch: on send,
the current state; on receive, the retained state for the message's source
epoch (see features/encrypted-media.md — Key Derivation).
Derives the per-file encryption key for an
encrypted-media-v1attachment.HKDF is HKDF-SHA256 with
media_secretused directly as the PRK (Expand only, no Extract). The key is deterministic for a given source epoch + file.The source epoch is the MLS epoch of the application message that carried the attachment. The caller MUST pass the
ClientStatefor that epoch: on send, the current state; on receive, the retained state for the message's source epoch (seefeatures/encrypted-media.md— Key Derivation).