pub struct Context { /* private fields */ }
Expand description
Context represents a SRTP cryptographic context
Context can only be used for one-way operations
it must either used ONLY for encryption or ONLY for decryption
DecryptRTCP decrypts a RTCP packet with an encrypted payload
EncryptRTCP marshals and encrypts an RTCP packet, writing to the dst buffer provided.
If the dst buffer does not have the capacity to hold len(plaintext) + 14
bytes, a new one will be allocated and returned.
DecryptRTP decrypts a RTP packet with an encrypted payload
EncryptRTP marshals and encrypts an RTP packet, writing to the dst buffer provided.
If the dst buffer does not have the capacity to hold len(plaintext) + 10
bytes, a new one will be allocated and returned.
CreateContext creates a new SRTP Context
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,