Class MasterKeys
Class for storing a single SRTP master key, master salt and parameters related to these.
Inherited Members
Namespace: SipLib.RtpCrypto
Assembly: SipLib.dll
Syntax
public class MasterKeys
Constructors
| Edit this page View SourceMasterKeys(string)
Creates a new RtpMaster key object and initializes the MasterKey and the MasterSalt to random values.
Declaration
public MasterKeys(string cryptoSuite)
Parameters
Type | Name | Description |
---|---|---|
string | cryptoSuite | Crypto suite to be used. |
Fields
| Edit this page View SourceKeyDerivationRate
Stores the Key Derivation Rate (KDR). This is a power of 2 that is in the range of 1 to 24. This value specifies the number of packets after which the session keys are recalculated. A value of 0 indicates that the KDR is unspecified. This means that the session keys are only calculated from the master keys once.
Declaration
public ulong KeyDerivationRate
Field Value
Type | Description |
---|---|
ulong |
MKI
Master Key Identifier (MKI) for the master key.
Declaration
public uint MKI
Field Value
Type | Description |
---|---|
uint |
MasterKey
Contains the bytes of the master key. The key length depends on the AES encryption algorithm being used.
Declaration
public byte[]? MasterKey
Field Value
Type | Description |
---|---|
byte[] |
MasterSalt
Contains the bytes of the master salt. The length will always be 14 bytes for the AES-CM and AES-f8 encryption algorithms.
Declaration
public byte[]? MasterSalt
Field Value
Type | Description |
---|---|
byte[] |
NumKdrPackets
Specifies the number of packets for the KDR. This value if calculated as 2^KDR.
Declaration
public ulong NumKdrPackets
Field Value
Type | Description |
---|---|
ulong |
RtcpMasterKeyCount
The number of RTCP packets that have been sent using this master key.
Declaration
public long RtcpMasterKeyCount
Field Value
Type | Description |
---|---|
long |
RtpMasterKeyCount
Number of RTP packets that have been sent using this master key.
Declaration
public long RtpMasterKeyCount
Field Value
Type | Description |
---|---|
long |
Properties
| Edit this page View SourceCryptoSuite
Gets the crypto suite name
Declaration
public string CryptoSuite { get; }
Property Value
Type | Description |
---|---|
string |