File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- use libwebrtc:: native:: frame_cryptor:: { self as fc, KeyDerivationAlgorithm } ;
15+ use libwebrtc:: native:: frame_cryptor as fc;
1616use std:: sync:: {
1717 atomic:: { AtomicI32 , Ordering } ,
1818 Arc ,
1919} ;
2020
2121use crate :: id:: ParticipantIdentity ;
2222
23+ pub use libwebrtc:: native:: frame_cryptor:: KeyDerivationAlgorithm ;
24+
2325const DEFAULT_RATCHET_SALT : & str = "LKFrameEncryptionKey" ;
2426const DEFAULT_RATCHET_WINDOW_SIZE : i32 = 16 ;
2527const DEFAULT_FAILURE_TOLERANCE : i32 = -1 ; // no tolerance by default
2628const DEFAULT_KEY_RING_SIZE : i32 = 16 ;
29+ const DEFAULT_KEY_DERIVATION_ALGORITHM : KeyDerivationAlgorithm = KeyDerivationAlgorithm :: PBKDF2 ;
2730
2831#[ derive( Clone ) ]
2932pub struct KeyProviderOptions {
@@ -41,7 +44,7 @@ impl Default for KeyProviderOptions {
4144 ratchet_salt : DEFAULT_RATCHET_SALT . to_owned ( ) . into_bytes ( ) ,
4245 failure_tolerance : DEFAULT_FAILURE_TOLERANCE ,
4346 key_ring_size : DEFAULT_KEY_RING_SIZE ,
44- key_derivation_algorithm : KeyDerivationAlgorithm :: PBKDF2 ,
47+ key_derivation_algorithm : DEFAULT_KEY_DERIVATION_ALGORITHM ,
4548 }
4649 }
4750}
You can’t perform that action at this time.
0 commit comments