Class CryptoSuites
Class that provides information about the crypto suites for SRTP that this class library supports.
Inherited Members
Namespace: SipLib.RtpCrypto
Assembly: SipLib.dll
Syntax
public class CryptoSuites
Fields
| Edit this page View SourceAES_192_CM_HMAC_SHA1_32
See Table 2 of RFC 6188
Declaration
public const string AES_192_CM_HMAC_SHA1_32 = "AES_192_CM_HMAC_SHA1_32"
Field Value
Type | Description |
---|---|
string |
AES_192_CM_HMAC_SHA1_80
See Table 1 of RFC 6188
Declaration
public const string AES_192_CM_HMAC_SHA1_80 = "AES_192_CM_HMAC_SHA1_80"
Field Value
Type | Description |
---|---|
string |
AES_256_CM_HMAC_SHA1_32
See Table 4 of RFC 6188
Declaration
public const string AES_256_CM_HMAC_SHA1_32 = "AES_256_CM_HMAC_SHA1_32"
Field Value
Type | Description |
---|---|
string |
AES_256_CM_HMAC_SHA1_80
See Table 3 of RFC 6188
Declaration
public const string AES_256_CM_HMAC_SHA1_80 = "AES_256_CM_HMAC_SHA1_80"
Field Value
Type | Description |
---|---|
string |
AES_CM_128_HMAC_SHA1_32
See Section 6.2.2 of RFC 4568
Declaration
public const string AES_CM_128_HMAC_SHA1_32 = "AES_CM_128_HMAC_SHA1_32"
Field Value
Type | Description |
---|---|
string |
AES_CM_128_HMAC_SHA1_80
See Section 6.2.1 of RFC 4568
Declaration
public const string AES_CM_128_HMAC_SHA1_80 = "AES_CM_128_HMAC_SHA1_80"
Field Value
Type | Description |
---|---|
string |
F8_128_HMAC_SHA1_80
See Section 6.2.3 of RFC 4568
Declaration
public const string F8_128_HMAC_SHA1_80 = "F8_128_HMAC_SHA1_80"
Field Value
Type | Description |
---|---|
string |
SupportedAlgorithms
Gets the list of supported SRTP cryptographic algorithms. This list is ordered from most preferred (most secure) to least preferred.
Declaration
public static List<string> SupportedAlgorithms
Field Value
Type | Description |
---|---|
List<string> |
Methods
| Edit this page View SourceCryptoSuiteIsSupported(string)
Returns true if the crypto cryptoSuite is supported or false if it not
Declaration
public static bool CryptoSuiteIsSupported(string cryptoSuite)
Parameters
Type | Name | Description |
---|---|---|
string | cryptoSuite | Name of the crypto cryptoSuite |
Returns
Type | Description |
---|---|
bool | True if the cryptoSuite is supported or false if it is not. |
GetAuthTagLengthBytes(string)
Gets the length in bytes of the authentication tag that is appended to each RTP and RTCP packet.
Declaration
public static int GetAuthTagLengthBytes(string cryptoSuite)
Parameters
Type | Name | Description |
---|---|---|
string | cryptoSuite | Crypto suite. |
Returns
Type | Description |
---|---|
int | Returns the length of the SRTP authentication in bytes. The return value either be 10 or 4. |
GetKeyLengthBytes(string)
Gets the key length in bytes for a cryto suite
Declaration
public static int GetKeyLengthBytes(string cryptoSuite)
Parameters
Type | Name | Description |
---|---|---|
string | cryptoSuite | The SRTP crypto suite that the inline parameters relate to |
Returns
Type | Description |
---|---|
int | Returns the expected key length |