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

Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.