Gjsify LogoGjsify Logo

Hold the common fields for all payloads

record

Hierarchy

  • MIKEYPayload

Index

Constructors

Properties

len: number

length of the payload

field

the payload type

field
name: string

Methods

  • kemac_get_n_sub(): number
  • kemac_remove_sub(idx: number): boolean
  • key_data_set_interval(vf_len: number, vt_data: Uint8Array): boolean
  • Set the key validity period in the %GST_MIKEY_PT_KEY_DATA payload.

    Parameters

    • vf_len: number

      the length of vf_data

    • vt_data: Uint8Array

      the Valid To data

    Returns boolean

  • Set key_len bytes of key_data of type key_type as the key for the %GST_MIKEY_PT_KEY_DATA payload.

    Parameters

    • key_type: MIKEYKeyDataType

      a #GstMIKEYKeyDataType

    • key_data: Uint8Array

      the key of type key_type

    Returns boolean

  • key_data_set_salt(salt_data: Uint8Array): boolean
  • Set the salt key data. If salt_len is 0 and salt_data is %NULL, the salt data will be removed.

    Parameters

    • salt_data: Uint8Array

      the salt

    Returns boolean

  • key_data_set_spi(spi_data: Uint8Array): boolean
  • Set the SPI/MKI validity in the %GST_MIKEY_PT_KEY_DATA payload.

    Parameters

    • spi_data: Uint8Array

      the SPI/MKI data

    Returns boolean

  • Set the PKE values in payload. payload must be of type %GST_MIKEY_PT_PKE.

    Parameters

    • C: MIKEYCacheType

      envelope key cache indicator

    • data: Uint8Array

      the encrypted envelope key

    Returns boolean

  • rand_set(rand: Uint8Array): boolean
  • Set the random values in a %GST_MIKEY_PT_RAND payload.

    Parameters

    • rand: Uint8Array

      random values

    Returns boolean

  • sp_add_param(type: number, val: Uint8Array): boolean
  • Add a new parameter to the %GST_MIKEY_PT_SP payload with type, len and val.

    Parameters

    • type: number

      a type

    • val: Uint8Array

      len bytes of data

    Returns boolean

  • sp_get_n_params(): number
  • sp_remove_param(idx: number): boolean
  • Remove the Security Policy parameters from a %GST_MIKEY_PT_SP payload at idx.

    Parameters

    • idx: number

      an index

    Returns boolean

  • t_set(type: MIKEYTSType, ts_value: Uint8Array): boolean

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