11/*
2- * Copyright 2023-2025 LiveKit, Inc.
2+ * Copyright 2023-2026 LiveKit, Inc.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@ package io.livekit.android.e2ee
1818
1919import io.livekit.android.util.LKLog
2020import livekit.org.webrtc.FrameCryptorFactory
21+ import livekit.org.webrtc.FrameCryptorKeyDerivationAlgorithm
2122import livekit.org.webrtc.FrameCryptorKeyProvider
2223
2324internal class KeyInfo (var participantId : String , var keyIndex : Int , var key : String ) {
@@ -49,6 +50,7 @@ class BaseKeyProvider(
4950 failureTolerance : Int = defaultFailureTolerance,
5051 keyRingSize : Int = defaultKeyRingSize,
5152 discardFrameWhenCryptorNotReady : Boolean = defaultDiscardFrameWhenCryptorNotReady,
53+ keyDerivationAlgorithm : FrameCryptorKeyDerivationAlgorithm = defaultKeyDerivationAlgorithm,
5254) : KeyProvider {
5355
5456 private val latestSetIndex = mutableMapOf<String , Int >()
@@ -61,6 +63,7 @@ class BaseKeyProvider(
6163 failureTolerance,
6264 keyRingSize,
6365 discardFrameWhenCryptorNotReady,
66+ keyDerivationAlgorithm,
6467 )
6568
6669 override fun setSharedKey (key : String , keyIndex : Int? ): Boolean {
0 commit comments