• Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • SipLib.Body
      • BodyParser
      • ContentTypes
      • MessageContentsContainer
      • MultipartBinaryBodyBuilder
      • SipBodyBuilder
    • SipLib.Channels
      • AcceptCertificateDelegate
      • AcceptConnectionDelegate
      • DscpSettings
      • LogInvalidSipMessageDelegate
      • LogSipRequestDelegate
      • LogSipResponseDelegate
      • Qos
      • SIPChannel
      • SIPConnection
      • SIPConnectionDisconnectedDelegate
      • SIPConnectionsEnum
      • SIPMessageReceivedDelegate
      • SIPTCPChannel
      • SIPTLSChannel
      • SIPUDPChannel
      • SipConnectionFailedDelegate
      • SipRequestReceivedDelegate
      • SipResponseReceivedDelegate
      • SipTransactionCompleteDelegate
      • WindowsQos
    • SipLib.Collections
      • ThreadSafeGenericList<T>
    • SipLib.Core
      • ByteBufferInfo
      • CallProperties
      • Crypto
      • HTTPDigest
      • IPSocket
      • SIPAuthenticationHeader
      • SIPAuthorisationDigest
      • SIPAuthorisationHeadersEnum
      • SIPCallInfoHeader
      • SIPConstants
      • SIPContactHeader
      • SIPEndPoint
      • SIPEscape
      • SIPFrag
      • SIPFromHeader
      • SIPGeolocationHeader
      • SIPHeader
      • SIPHeaders
      • SIPMessage
      • SIPMessageTypesEnum
      • SIPMethods
      • SIPMethodsEnum
      • SIPPaiHeader
      • SIPParameters
      • SIPPpiHeader
      • SIPProtocolsEnum
      • SIPProtocolsType
      • SIPReplacesParameter
      • SIPRequest
      • SIPResponse
      • SIPResponseStatusCodes
      • SIPResponseStatusCodesEnum
      • SIPRoute
      • SIPRouteSet
      • SIPSchemesEnum
      • SIPSchemesType
      • SIPToHeader
      • SIPURI
      • SIPUserField
      • SIPValidationException
      • SIPValidationFieldsEnum
      • SIPViaHeader
      • SIPViaSet
      • SipUtils
      • TypeExtensions
    • SipLib.Dtls
      • AlertLevelsEnum
      • AlertTypesEnum
      • DtlsClientUdpTransport
      • DtlsServerUdpTransport
      • DtlsSrtpClient
      • DtlsSrtpServer
      • DtlsSrtpTransport
      • DtlsUtils
      • IDtlsSrtpPeer
      • IPacketTransformer
      • ITransformEngine
      • NetConvert
      • RTCDtlsFingerprint
      • RawPacket
      • SrtcpCryptoContext
      • SrtpPolicy
      • SrtpTransformEngine
      • SrtpTransformer
    • SipLib.Logging
      • SipLogger
    • SipLib.Media
      • ALawDecoder
      • ALawEncoder
      • AudioDestination
      • AudioDestinationDelegate
      • AudioSampleData
      • AudioSamplesReadyDelegate
      • AudioSource
      • Band
      • DtmfDigitReceivedDelegate
      • FileAudioSource
      • G722Codec
      • G722CodecState
      • G722Decoder
      • G722Encoder
      • G722Flags
      • HighResolutionTimer
      • HighResolutionTimerDelegate
      • IAudioDecoder
      • IAudioEncoder
      • IAudioSampleSource
      • MediaPortManager
      • MediaPortSettings
      • MediaTypes
      • MsrpEncryptionEnum
      • MuLawDecoder
      • MuLawEncoder
      • PcmaDecoder
      • PcmaEncoder
      • PcmuDecoder
      • PcmuEncoder
      • PortRange
      • RtpEncryptionEnum
    • SipLib.Msrp
      • ByteRangeHeader
      • CpimMessage
      • MsrpCompletionStatus
      • MsrpConnection
      • MsrpConnectionStatusDelegate
      • MsrpMessage
      • MsrpMessageDeliveryFailedDelegate
      • MsrpMessageReceivedDelegate
      • MsrpMessageSentDelegate
      • MsrpMessageType
      • MsrpPathHeader
      • MsrpStatusHeader
      • MsrpStreamParser
      • MsrpTextMessageReceivedDelegate
      • MsrpUri
      • ReportReceivedDelegate
    • SipLib.Network
      • IpUtils
    • SipLib.RealTimeText
      • RttCharactersReceivedDelegate
      • RttParameters
      • RttReceiver
      • RttRtpSendDelegate
      • RttSender
    • SipLib.Rtp
      • ByePacket
      • DtlsHandshakeFailedDelegate
      • DtmfEventEnum
      • DtmfPacket
      • JitterStatistics
      • MeanOpinionScore
      • ReceiveStatisticsReadyDelegate
      • ReceiverReport
      • ReportBlock
      • RtcpCompoundPacket
      • RtcpHeader
      • RtcpPacketReceivedDelegate
      • RtcpPacketSentDelegate
      • RtcpPacketType
      • RtpChannel
      • RtpPacket
      • RtpPacketReceivedDelegate
      • RtpPacketSentDelegate
      • RtpReceiveStatistics
      • RtpUtils
      • SdesChunk
      • SdesItem
      • SdesItemType
      • SdesPacket
      • SenderInfo
      • SenderReport
    • SipLib.RtpCrypto
      • AesFunctions
      • CryptoAttribute
      • CryptoContext
      • CryptoSuites
      • InlineParams
      • MasterKeys
      • RocVals
      • RocValues
      • SRtpErrorsEnum
      • SRtpUtils
      • SessionKeys
      • SrtpDecryptor
      • SrtpEncryptor
      • SrtpLabelItem
      • SrtpTransformBase
    • SipLib.Sdp
      • ConnectionData
      • MediaDescription
      • MediaDirectionEnum
      • Origin
      • RtpMapAttribute
      • Sdp
      • SdpAnswerSettings
      • SdpAttribute
      • SdpUtils
      • SetupType
    • SipLib.Threading
      • QueuedActionWorkerTask
    • SipLib.Transactions
      • ClientInviteTransaction
      • ClientNonInviteTransaction
      • ServerInviteTransaction
      • ServerNonInviteTransaction
      • SipTimers
      • SipTransactionBase
      • SipTransport
      • TransactionRequestReceivedDelegate
      • TransactionResponseReceivedDelegate
      • TransactionStateEnum
      • TransactionTerminationReasonEnum
    • SipLib.Video
      • H264Depacketiser
      • H264Packetiser
      • H264Packetiser.H264Nal
      • H264RtpReceiver
      • H264RtpSender
      • RtpSendDelegate
      • RtpVP8Header
      • VP8RtpReceiver
      • VP8RtpSender
      • VideoRtpReceiver
      • VideoRtpSender

    Class CryptoContext

    Class for storing the settings and status of the cryptographic context for SRTP and SRTCP.

    Inheritance
    object
    CryptoContext
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SipLib.RtpCrypto
    Assembly: SipLib.dll
    Syntax
    public class CryptoContext

    Constructors

    | Edit this page View Source

    CryptoContext(string)

    Creates a new CryptoContext object with a single MasterKey. Use this constructor when building a SRTP crypto context for sending SRTP and SRTCP packets.

    Declaration
    public CryptoContext(string cryptoSuite)
    Parameters
    Type Name Description
    string cryptoSuite

    Specifies the name of the crypto suite to use.

    Fields

    | Edit this page View Source

    AuthTagLength

    Specifies the length in bytes of the packet authentication tag that is appended to each RTP or RTCP packet. Will be equal to 10 or 4 depending upon the crypto suite being used.

    Declaration
    public int AuthTagLength
    Field Value
    Type Description
    int
    | Edit this page View Source

    CurrentRtcpMasterKeyIndex

    Index of the current maser key in the MasterKeys list for RTCP.

    Declaration
    public int CurrentRtcpMasterKeyIndex
    Field Value
    Type Description
    int
    | Edit this page View Source

    CurrentRtpMasterKeyIndex

    Index of the current master key in the MasterKeys list for RTP.

    Declaration
    public int CurrentRtpMasterKeyIndex
    Field Value
    Type Description
    int
    | Edit this page View Source

    HighestSeq

    Highest received RTP sequence number. This value is the s_l variable in Section 3.3.1 of RFC 3711. This is used by the receiver only.

    Declaration
    public ushort HighestSeq
    Field Value
    Type Description
    ushort
    | Edit this page View Source

    MasterKeys

    Contains the master keys and master salts used for this crypto context. Will contain at least one entry.

    Declaration
    public List<MasterKeys> MasterKeys
    Field Value
    Type Description
    List<MasterKeys>
    | Edit this page View Source

    MaxSendRtcpIndex

    Maximum RTCP Index value. 2^31 - 1 because only 31 bits of the RTCP index are used, the MS bit is used to indicate encryption.

    Declaration
    public const uint MaxSendRtcpIndex = 2147483647
    Field Value
    Type Description
    uint
    | Edit this page View Source

    MkiIndicator

    If true, then each SRTP or SRTCP packet will be appended by a Master Key Indentifier (MKI) value that identifies the master encryption key used for that packet. If false, then no MKI will be attached to the packets.

    Declaration
    public bool MkiIndicator
    Field Value
    Type Description
    bool
    | Edit this page View Source

    MkiLength

    Specifies the length in bytes of the MKI attached to each SRTP or SRTCP packet. Used only if MkiIndicator is true.

    Declaration
    public int MkiLength
    Field Value
    Type Description
    int
    | Edit this page View Source

    ROC

    Current Roll Over Counter (ROC) values. The ROC represents the number of times that the SEQ number of the SRTP packets has been reset to 0. The ROC is not used for RTCP.

    Declaration
    public RocVals ROC
    Field Value
    Type Description
    RocVals
    | Edit this page View Source

    RtcpSessionKeys

    Stores the current session keys (key, salt and auth. key) for SRTCP.

    Declaration
    public SessionKeys RtcpSessionKeys
    Field Value
    Type Description
    SessionKeys
    | Edit this page View Source

    RtpSessionKeys

    Stores the current session keys (key, salt and auth. key) for SRTP.

    Declaration
    public SessionKeys RtpSessionKeys
    Field Value
    Type Description
    SessionKeys
    | Edit this page View Source

    SendRtcpIndex

    SRTP Index used for sending RTCP packets

    Declaration
    public uint SendRtcpIndex
    Field Value
    Type Description
    uint

    Properties

    | Edit this page View Source

    CryptoSuite

    Gets the crypto suite name used by this crypto context.

    Declaration
    public string CryptoSuite { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    CreateFromCryptoAttribute(CryptoAttribute)

    Creates a new CryptoContext object from a CryptoAttribute object.

    Declaration
    public static CryptoContext CreateFromCryptoAttribute(CryptoAttribute attr)
    Parameters
    Type Name Description
    CryptoAttribute attr

    Input CryptoAttribute

    Returns
    Type Description
    CryptoContext

    Returns a new CryptoContext object

    | Edit this page View Source

    ToCryptoAttribute()

    Converts this crypto context object into a CryptoAttribute object.

    Declaration
    public CryptoAttribute ToCryptoAttribute()
    Returns
    Type Description
    CryptoAttribute

    Returns a new CryptoAttribute object

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX