Gjsify LogoGjsify Logo

Structure holding the information of the MIKEY message

record

Hierarchy

  • MIKEYMessage

Index

Constructors

Properties

cSBId: number

Identifies the Crypto Session Bundle

field
mapInfo: object[]

map info array of type depending on map_type

field
mapType: MIKEYMapType

a #GstMIKEYMapType

field
payloads: object[]

the payload array of #GstMIKEYPayload

field
prfFunc: MIKEYPRFFunc

a #GstMIKEYPRFFunc

field
type: MIKEYType

the #GstMIKEYType message type

field
v: boolean

verify flag

field
version: number

the version

field
name: string

Methods

  • addCsSrtp(policy: number, ssrc: number, roc: number): boolean
  • Add a Crypto policy for SRTP to msg.

    Parameters

    • policy: number

      The security policy applied for the stream with ssrc

    • ssrc: number

      the SSRC that must be used for the stream

    • roc: number

      current rollover counter

    Returns boolean

  • Add a new PKE payload to msg with the given parameters.

    Parameters

    • c: MIKEYCacheType

      envelope key cache indicator

    • data: Uint8Array

      the encrypted envelope key

    Returns boolean

  • addRand(rand: Uint8Array): boolean
  • Add a new RAND payload to msg with the given parameters.

    Parameters

    • rand: Uint8Array

      random data

    Returns boolean

  • addRandLen(len: number): boolean
  • Add a new RAND payload to msg with len random bytes.

    Parameters

    • len: number

      length

    Returns boolean

  • Add a new T payload to msg with the given parameters.

    Parameters

    • type: MIKEYTSType

      specifies the timestamp type used

    • tsValue: Uint8Array

      The timestamp value of the specified type

    Returns boolean

  • addTNowNtpUtc(): boolean
  • Add a new T payload to msg that contains the current time in NTP-UTC format.

    Returns boolean

  • base64Encode(): string
  • getNCs(): number
  • getNPayloads(): number
  • Insert a Crypto Session map for SRTP in msg at idx

    When idx is -1, the policy will be appended.

    Parameters

    • idx: number

      the index to insert at

    • map: MIKEYMapSRTP

      the map info

    Returns boolean

  • Insert the payload at index idx in msg. If idx is -1, the payload will be appended to msg.

    Parameters

    • idx: number

      an index

    • payload: MIKEYPayload

      a #GstMIKEYPayload

    Returns boolean

  • removeCsSrtp(idx: number): boolean
  • Remove the SRTP policy at idx.

    Parameters

    • idx: number

      the index to remove

    Returns boolean

  • removePayload(idx: number): boolean
  • Remove the payload in msg at idx

    Parameters

    • idx: number

      an index

    Returns boolean

  • Replace a Crypto Session map for SRTP in msg at idx with map.

    Parameters

    • idx: number

      the index to insert at

    • map: MIKEYMapSRTP

      the map info

    Returns boolean

  • Replace the payload at idx in msg with payload.

    Parameters

    • idx: number

      an index

    • payload: MIKEYPayload

      a #GstMIKEYPayload

    Returns boolean

  • Set the information in msg.

    Parameters

    • version: number

      a version

    • type: MIKEYType

      a #GstMIKEYType

    • v: boolean

      verify flag

    • prfFunc: MIKEYPRFFunc

      the #GstMIKEYPRFFunc function to use

    • cSBId: number

      the Crypto Session Bundle id

    • mapType: MIKEYMapType

      the #GstMIKEYMapType

    Returns boolean

  • Makes mikey message including:

    • Security Policy Payload
    • Key Data Transport Payload
    • Key Data Sub-Payload

    Parameters

    • caps: Gst.Caps

      a #GstCaps, including SRTP parameters (srtp/srtcp cipher, authorization, key data)

    Returns MIKEYMessage

  • Parse size bytes from data into a #GstMIKEYMessage. info contains the parameters to decrypt and verify the data.

    Parameters

    Returns MIKEYMessage

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method