Class SrtpTransformEngine
Implementation of the SRTP Transform Engine
Implements
Inherited Members
Namespace: SipLib.Dtls
Assembly: SipLib.dll
Syntax
public class SrtpTransformEngine : ITransformEngine
Constructors
| Edit this page View SourceSrtpTransformEngine(byte[], byte[], SrtpPolicy, SrtpPolicy)
Constructs a SRTPTransformEngine based on given master encryption key, master salt key and SRTP/SRTCP policy.
Declaration
public SrtpTransformEngine(byte[] masterKey, byte[] masterSalt, SrtpPolicy srtpPolicy, SrtpPolicy srtcpPolicy)
Parameters
Type | Name | Description |
---|---|---|
byte[] | masterKey | The master encryption key |
byte[] | masterSalt | The master salt key |
SrtpPolicy | srtpPolicy | SRTP policy |
SrtpPolicy | srtcpPolicy | SRTCP policy |
Methods
| Edit this page View SourceClose()
Closes the transformer engine.
Declaration
public void Close()
GetDefaultContextControl()
Get the default SRTPCryptoContext
Declaration
public SrtcpCryptoContext? GetDefaultContextControl()
Returns
Type | Description |
---|---|
SrtcpCryptoContext |
GetRTCPTransformer()
Gets the IPacketTransformer for RTCP packets.
Declaration
public IPacketTransformer GetRTCPTransformer()
Returns
Type | Description |
---|---|
IPacketTransformer |
GetRTPTransformer()
Gets the IPacketTransformer for RTP packets.
Declaration
public IPacketTransformer GetRTPTransformer()
Returns
Type | Description |
---|---|
IPacketTransformer |