Class SrtcpTransformer
SRTCPTransformer implements PacketTransformer. It encapsulate the encryption / decryption logic for SRTCP packets
@author Bing SU (nova.su @gmail.com) @author Werner Dittmann (Werner.Dittmann@t-online.de)
Inheritance
System.Object
SrtcpTransformer
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class SrtcpTransformer : IPacketTransformer
Constructors
| Improve this Doc View SourceSrtcpTransformer(SrtpTransformEngine)
Declaration
public SrtcpTransformer(SrtpTransformEngine engine)
Parameters
Type | Name | Description |
---|---|---|
SrtpTransformEngine | engine |
SrtcpTransformer(SrtpTransformEngine, SrtpTransformEngine)
Declaration
public SrtcpTransformer(SrtpTransformEngine forwardEngine, SrtpTransformEngine reverseEngine)
Parameters
Type | Name | Description |
---|---|---|
SrtpTransformEngine | forwardEngine | |
SrtpTransformEngine | reverseEngine |
Methods
| Improve this Doc View SourceClose()
Close the transformer and underlying transform engine. The close functions closes all stored crypto contexts. This deletes key data and forces a cleanup of the crypto contexts.
Declaration
public void Close()
ReverseTransform(Byte[])
Declaration
public byte[] ReverseTransform(byte[] pkt)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | pkt |
Returns
Type | Description |
---|---|
System.Byte[] |
ReverseTransform(Byte[], Int32, Int32)
Declaration
public byte[] ReverseTransform(byte[] pkt, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | pkt | |
System.Int32 | offset | |
System.Int32 | length |
Returns
Type | Description |
---|---|
System.Byte[] |
Transform(Byte[])
Encrypts a SRTCP packet
Declaration
public byte[] Transform(byte[] pkt)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | pkt | plain SRTCP packet to be encrypted. |
Returns
Type | Description |
---|---|
System.Byte[] | encrypted SRTCP packet. |
Transform(Byte[], Int32, Int32)
Declaration
public byte[] Transform(byte[] pkt, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | pkt | |
System.Int32 | offset | |
System.Int32 | length |
Returns
Type | Description |
---|---|
System.Byte[] |