gstsdp.mikeypayload
Module for [MIKEYPayload] class
class MIKEYPayload
Types 1
classMIKEYPayload : gobject.boxed.Boxed
Hold the common fields for all payloads
Methods
MIKEYPayload self()Returns `this`, for use in `with` statements.void type(gstsdp.types.MIKEYPayloadType propval) @propertySet `type` field. Params: propval = the payload typebool kemacAddSub(gstsdp.mikeypayload.MIKEYPayload newpay)Add a new sub payload to payload.uint kemacGetNSub()Get the number of sub payloads of payload. payload should be of type `GSTMIKEYPT_KEMAC`. Returns: the number of sub payloads in payloadgstsdp.mikeypayload.MIKEYPayload kemacGetSub(uint idx)Get the sub payload of payload at idx. payload should be of type `GSTMIKEYPT_KEMAC`.bool kemacRemoveSub(uint idx)Remove the sub payload at idx in payload.bool kemacSet(gstsdp.types.MIKEYEncAlg encAlg, gstsdp.types.MIKEYMacAlg macAlg)Set the KEMAC parameters. payload should point to a `GSTMIKEYPT_KEMAC` payload.bool keyDataSetInterval(ubyte[] vfData, ubyte[] vtData)Set the key validity period in the `GSTMIKEYPTKEYDATA` payload.bool keyDataSetKey(gstsdp.types.MIKEYKeyDataType keyType, ubyte[] keyData)Set keylen bytes of keydata of type keytype as the key for the `GSTMIKEYPTKEY_DATA` payload.bool keyDataSetSalt(ubyte[] saltData = null)Set the salt key data. If saltlen is 0 and saltdata is null, the salt data will be removed.bool keyDataSetSpi(ubyte[] spiData)Set the SPI/MKI validity in the `GSTMIKEYPTKEYDATA` payload.bool pkeSet(gstsdp.types.MIKEYCacheType C, ubyte[] data)Set the PKE values in payload. payload must be of type `GSTMIKEYPT_PKE`.bool randSet(ubyte[] rand)Set the random values in a `GSTMIKEYPT_RAND` payload.bool spAddParam(ubyte type, ubyte[] val)Add a new parameter to the `GSTMIKEYPT_SP` payload with type, len and val.uint spGetNParams()Get the number of security policy parameters in a `GSTMIKEYPT_SP` payload. Returns: the number of parameters in payloadgstsdp.mikeypayload_spparam.MIKEYPayloadSPParam spGetParam(uint idx)Get the Security Policy parameter in a `GSTMIKEYPT_SP` payload at idx.bool spRemoveParam(uint idx)Remove the Security Policy parameters from a `GSTMIKEYPT_SP` payload at idx.bool spSet(uint policy, gstsdp.types.MIKEYSecProto proto)Set the Security Policy parameters for payload.Constructors
this(gstsdp.types.MIKEYPayloadType type)Make a new #GstMIKEYPayload with type.