Class SrtpPolicy
SrtpPolicy holds the SRTP encryption / authentication policy of a SRTP session.
Author: Bing SU (nova.su@gmail.com)
Inherited Members
Namespace: SipLib.Dtls
Assembly: SipLib.dll
Syntax
public class SrtpPolicy
Constructors
| Edit this page View SourceSrtpPolicy(int, int, int, int, int, int)
Construct a SRTPPolicy object based on given parameters. This class acts as a storage class, so all the parameters are passed in through this constructor.
Declaration
public SrtpPolicy(int encType, int encKeyLength, int authType, int authKeyLength, int authTagLength, int saltKeyLength)
Parameters
Type | Name | Description |
---|---|---|
int | encType | SRTP encryption type |
int | encKeyLength | SRTP encryption key length |
int | authType | SRTP authentication type |
int | authKeyLength | SRTP authentication key length |
int | authTagLength | SRTP authentication tag length |
int | saltKeyLength | SRTP salt key length |
Fields
| Edit this page View SourceAESCM_ENCRYPTION
AES counter mode encryption. See RFC 3711.
Declaration
public const int AESCM_ENCRYPTION = 1
Field Value
Type | Description |
---|---|
int |
AESF8_ENCRYPTION
AES F8 encryption. See RFC 3711.
Declaration
public const int AESF8_ENCRYPTION = 2
Field Value
Type | Description |
---|---|
int |
HMACSHA1_AUTHENTICATION
HMAC SHA1 authentication. See RFC 3711.
Declaration
public const int HMACSHA1_AUTHENTICATION = 1
Field Value
Type | Description |
---|---|
int |
NULL_AUTHENTICATION
Not used in DTLS-SRTP
Declaration
public const int NULL_AUTHENTICATION = 0
Field Value
Type | Description |
---|---|
int |
NULL_ENCRYPTION
No encryption. See RFC 3711.
Declaration
public const int NULL_ENCRYPTION = 0
Field Value
Type | Description |
---|---|
int |
SKEIN_AUTHENTICATION
Not used in DTLS-SRTP
Declaration
public const int SKEIN_AUTHENTICATION = 2
Field Value
Type | Description |
---|---|
int |
TWOFISHF8_ENCRYPTION
Not used in DTLS-SRTP
Declaration
public const int TWOFISHF8_ENCRYPTION = 4
Field Value
Type | Description |
---|---|
int |
TWOFISH_ENCRYPTION
Not used in DTLS-SRTP
Declaration
public const int TWOFISH_ENCRYPTION = 3
Field Value
Type | Description |
---|---|
int |
Properties
| Edit this page View SourceAuthKeyLength
Gets or sets the authentication key length
Declaration
public int AuthKeyLength { get; set; }
Property Value
Type | Description |
---|---|
int |
AuthTagLength
Gets or sets the authentication tag length
Declaration
public int AuthTagLength { get; set; }
Property Value
Type | Description |
---|---|
int |
AuthType
Gets or sets the authentication type
Declaration
public int AuthType { get; set; }
Property Value
Type | Description |
---|---|
int |
EncKeyLength
Gets or sets the encryption key length
Declaration
public int EncKeyLength { get; set; }
Property Value
Type | Description |
---|---|
int |
EncType
Gets or sets the encryption type
Declaration
public int EncType { get; set; }
Property Value
Type | Description |
---|---|
int |
SaltKeyLength
Gets or sets the salt length
Declaration
public int SaltKeyLength { get; set; }
Property Value
Type | Description |
---|---|
int |