Class SrtpTransformBase
Base class for the SrtpEncryptor and SrtpDecryptor classes
Inherited Members
Namespace: SipLib.RtpCrypto
Assembly: SipLib.dll
Syntax
public class SrtpTransformBase
Constructors
| Edit this page View SourceSrtpTransformBase(CryptoContext)
Constructor
Declaration
protected SrtpTransformBase(CryptoContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| CryptoContext | context | CryptoContext to use |
Fields
| Edit this page View Sourcem_Context
Cryptographic context to use for encryption and decryption of RTP and RTCP packets.
Declaration
protected CryptoContext m_Context
Field Value
| Type | Description |
|---|---|
| CryptoContext |
Properties
| Edit this page View SourceError
Gets or sets the reason for an encryption or a decryption error. This property will be set to a value indicating the cause of the error if an encryption or decryption method returns null.
Declaration
public SRtpErrorsEnum Error { get; protected set; }
Property Value
| Type | Description |
|---|---|
| SRtpErrorsEnum |
Methods
| Edit this page View SourceApplySrtcpTransform(RtcpHeader, uint, ulong, byte[], byte[])
Applies the AES or F8 transform specified in the CryptoContext to the input byte array to produce the output byte array for a RTCP packet
Declaration
protected void ApplySrtcpTransform(RtcpHeader Header, uint SSRC, ulong PI, byte[] InputBytes, byte[] OutputBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| RtcpHeader | Header | RTCP packet header |
| uint | SSRC | SSRC of the RTCP packet |
| ulong | PI | The calculated Packet Index |
| byte[] | InputBytes | Input array |
| byte[] | OutputBytes | Output array. Must be the same length as the input array |
ApplySrtcpTransform(RtcpHeader, uint, ulong, byte[], int, int, byte[])
Applies the AES or F8 transform specified in the CryptoContext to the input byte array to produce the output byte array for a RTCP packet
Declaration
protected void ApplySrtcpTransform(RtcpHeader Header, uint SSRC, ulong PI, byte[] InputBytes, int StartIdx, int Length, byte[] OutputBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| RtcpHeader | Header | RTCP header for the RTCP packet |
| uint | SSRC | SSRC of the RTCP packet |
| ulong | PI | The calculated Packet Index |
| byte[] | InputBytes | Input array |
| int | StartIdx | Starting index in the input array |
| int | Length | Number of bytes to apply the transform to |
| byte[] | OutputBytes | Output array. Must be the same length as the input array |
ApplySrtpTransform(RtpPacket, ulong, byte[], byte[])
Applies the AES or F8 transform specified in the CryptoContext to the input byte array to produce the output byte array for a RTP packet
Declaration
protected void ApplySrtpTransform(RtpPacket Rp, ulong PI, byte[] InputBytes, byte[] OutputBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| RtpPacket | Rp | RtpPacket containing the SSRC. |
| ulong | PI | The calculated Packet Index |
| byte[] | InputBytes | Input array |
| byte[] | OutputBytes | Output array. Must be the same length as the input array |