Skip to content

[feature] Option to choose key derivation function #974

@Airyzz

Description

@Airyzz

Is your feature request related to a problem? Please describe.
I am working on implementing end to end encrypted calls compatible with Element Call which is also using LiveKit. However, it is currently not possible for me to decrypt remote streams, as Element Call uses HKDF to derive keys, and this sdk currently is hardcoded to use PBKDF2.

Describe the solution you'd like
Providing some API to select different derivation function

Describe alternatives you've considered
I've made a simple patch to just replace PBKDF2 with HKDF as a test f05718e and it has allowed me to properly decrypt remote streams.

I made this patch only for the web implementation as it was easier to debug, but ideally it should be possible to use HKDF with the native implementation as well

Additional context
I'm willing to help work on implementation of this, but would appreciate some guidance from maintainers on how to best approach it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions