rtc_shared/crypto/
mod.rs

1use crate::error::Result;
2
3/// KeyingMaterialExporter to extract keying material.
4///
5/// This trait sits here to avoid getting a direct dependency between
6/// the dtls and srtp crates.
7pub trait KeyingMaterialExporter {
8    fn export_keying_material(&self, label: &str, context: &[u8], length: usize)
9        -> Result<Vec<u8>>;
10}