Skip to content

Implement using HKDF as the KDF.

379961f
Select commit
Loading
Failed to load commit list.
Open

E2EE: allow setting key_ring_size and key_derivation_algorithm #921

Implement using HKDF as the KDF.
379961f
Select commit
Loading
Failed to load commit list.
Knope Bot / Require changes to be documented required action Mar 6, 2026 in 0s

This pull request has not been documented yet

This project requires changes to be documented via changesets.

You can either correct the above issues, or use a change file to document this pull request. knope-bot can't auto-generate a change file for this pull request. Instead, you can document the change manually by creating a change file with Knope or following these instructions:

Alternatively, if this change doesn't affect the version or need to appear in the changelog, you can apply the internal label to skip this check.

  1. Create a file named .changeset/e2ee_allow_setting_key_ring_size_and_key_derivation_algorithm.md
  2. Copy and paste the below Markdown into the file
  3. Replace "CHANGE_TYPE" with major, minor, or patch (see knope's docs for what those mean)
  4. Edit the content as needed to be applicable to users of the project (not maintainers)

Details

---
libwebrtc: CHANGE_TYPE
livekit: CHANGE_TYPE
livekit-ffi: CHANGE_TYPE
imgproc: CHANGE_TYPE
yuv-sys: CHANGE_TYPE
webrtc-sys: CHANGE_TYPE
livekit-protocol: CHANGE_TYPE
soxr-sys: CHANGE_TYPE
webrtc-sys-build: CHANGE_TYPE
livekit-api: CHANGE_TYPE
---

# E2EE: allow setting key_ring_size and key_derivation_algorithm

#921 by @onestacked

Less hacky alternative to #904

This PR uses ~my [webrtc-sdk PR](https://github.com/webrtc-sdk/webrtc/pull/223)~ [this webrtc-sdk PR](https://github.com/webrtc-sdk/webrtc/pull/224) to configure the KDF, instead of just overwriting the derived key afterwards. This should also now properly support KeyRatcheting.

I've tested this with https://codeberg.org/esoteric_programmer/matrix-jukebox and it is compatible with ElementCall.

Fixed: https://github.com/livekit/rust-sdks/issues/796