Class InlineParams
Class for storing and managing the parameter of the "inline" SRTP key-param of an SDP crypto media attribute. See Section 9 of RFC 4568.
Inherited Members
Namespace: SipLib.RtpCrypto
Assembly: SipLib.dll
Syntax
public class InlineParams
Fields
| Edit this page View SourceLifetime
Specifies the lifetime of the master key in RTP packets. A value of 0 indicates that the default lifetime is to be used. Must be an integral power of 2. A value of 0 indicates that the default lifetime of 2^48 should be used.
Declaration
public ulong Lifetime
Field Value
Type | Description |
---|---|
ulong |
MKI
Specifies the Master Key Identifier (MKI) for the master key. A value of 0 indicates that master key identifiers are not being used.
Declaration
public int MKI
Field Value
Type | Description |
---|---|
int |
MKI_Length
Specifies length in bytes of the MKI in the SRTP or SRTCP packet.
Declaration
public int MKI_Length
Field Value
Type | Description |
---|---|
int |
MasterKey
Contains the master key byte array. Must be a valid length for the AES algorithm (16 bytes for AES-128), (24 bytes for AES-192 or 32 bytes for AES-256).
Declaration
public byte[]? MasterKey
Field Value
Type | Description |
---|---|
byte[] |
MasterSalt
Contains the master salt byte array. Must be 14 bytes in length for SRTP.
Declaration
public byte[]? MasterSalt
Field Value
Type | Description |
---|---|
byte[] |
Methods
| Edit this page View SourceParse(string, int)
Parses the "inline=" portion of an SDP crypto attribute.
Declaration
public static InlineParams? Parse(string Inline, int KeyLength)
Parameters
Type | Name | Description |
---|---|---|
string | Inline | String containing the "inline=" portion of the crypto attribute. Needs to be in the form: "inline:MTIzNDU2Nzg5QUJDREUwMTIzNDU2Nzg5QUJjZGVm|2^20|1:4". See Section 9.1 of RFC 4568. |
int | KeyLength | Master Key length in bytes. Must be 16, 24 or 32, depending on the crypto suite. |
Returns
Type | Description |
---|---|
InlineParams | Returns a new InlineParameters object if the input is valid or null if the input is not valid. |
ToString()
Converts this object into a formatted string for inclusion as an inline key param. in a crypto SDP attribute.
Declaration
public string ToString()
Returns
Type | Description |
---|---|
string | Returns a string representation of this object. |