Make a new #GstMIKEYPayload with type
.
a #GstMIKEYPayloadType
length of the payload
the payload type
Add a new sub payload to payload
.
a #GstMIKEYPayload to add
Get the number of sub payloads of payload
. payload
should be of type
%GST_MIKEY_PT_KEMAC.
Get the sub payload of payload
at idx
. payload
should be of type
%GST_MIKEY_PT_KEMAC.
an index
Remove the sub payload at idx
in payload
.
the index to remove
Set the KEMAC parameters. payload
should point to a %GST_MIKEY_PT_KEMAC
payload.
the #GstMIKEYEncAlg
a #GstMIKEYMacAlg
Set the key validity period in the %GST_MIKEY_PT_KEY_DATA payload
.
the length of vf_data
the Valid To data
Set key_len
bytes of key_data
of type key_type
as the key for the
%GST_MIKEY_PT_KEY_DATA payload
.
a #GstMIKEYKeyDataType
the key of type key_type
Set the salt key data. If salt_len
is 0 and salt_data
is %NULL, the
salt data will be removed.
the salt
Set the SPI/MKI validity in the %GST_MIKEY_PT_KEY_DATA payload
.
the SPI/MKI data
Set the PKE values in payload
. payload
must be of type
%GST_MIKEY_PT_PKE.
envelope key cache indicator
the encrypted envelope key
Set the random values in a %GST_MIKEY_PT_RAND payload
.
random values
Add a new parameter to the %GST_MIKEY_PT_SP payload
with type,
len
and val
.
a type
len
bytes of data
Get the number of security policy parameters in a %GST_MIKEY_PT_SP
payload
.
Get the Security Policy parameter in a %GST_MIKEY_PT_SP payload
at idx
.
an index
Remove the Security Policy parameters from a %GST_MIKEY_PT_SP
payload
at idx
.
an index
Set the Security Policy parameters for payload
.
the policy number
a #GstMIKEYSecProto
Set the timestamp in a %GST_MIKEY_PT_T payload
.
the #GstMIKEYTSType
the timestamp value
Make a new #GstMIKEYPayload with type
.
a #GstMIKEYPayloadType
Hold the common fields for all payloads