Make a new MIKEY message.
Identifies the Crypto Session Bundle
map info array of type depending on map_type
a #GstMIKEYMapType
the payload array of #GstMIKEYPayload
a #GstMIKEYPRFFunc
the #GstMIKEYType message type
verify flag
the version
Add a Crypto policy for SRTP to msg
.
The security policy applied for the stream with ssrc
the SSRC that must be used for the stream
current rollover counter
Add a new payload to msg
.
a #GstMIKEYPayload
Add a new PKE payload to msg
with the given parameters.
envelope key cache indicator
the encrypted envelope key
Add a new RAND payload to msg
with the given parameters.
random data
Add a new RAND payload to msg
with len
random bytes.
length
Add a new T payload to msg
with the given parameters.
specifies the timestamp type used
The timestamp value of the specified type
Add a new T payload to msg
that contains the current time
in NTP-UTC format.
Find the nth
occurrence of the payload with type
in msg
.
a #GstMIKEYPayloadType
payload to find
Get the policy information of msg
at idx
.
an index
Get the number of crypto sessions in msg
.
Get the number of payloads in msg
.
Get the #GstMIKEYPayload at idx
in msg
an index
Insert a Crypto Session map for SRTP in msg
at idx
When idx
is -1, the policy will be appended.
the index to insert at
the map info
Insert the payload
at index idx
in msg
. If idx
is -1, the payload
will be appended to msg
.
an index
a #GstMIKEYPayload
Remove the SRTP policy at idx
.
the index to remove
Remove the payload in msg
at idx
an index
Replace a Crypto Session map for SRTP in msg
at idx
with map
.
the index to insert at
the map info
Replace the payload at idx
in msg
with payload
.
an index
a #GstMIKEYPayload
Set the information in msg
.
a version
a #GstMIKEYType
verify flag
the #GstMIKEYPRFFunc function to use
the Crypto Session Bundle id
the #GstMIKEYMapType
Convert msg
to a #GBytes.
a #GstMIKEYEncryptInfo
Make a new MIKEY message.
Make a new #GstMIKEYMessage from bytes
.
a #GBytes
a #GstMIKEYDecryptInfo
Makes mikey message including:
Parse size
bytes from data
into a #GstMIKEYMessage. info
contains the
parameters to decrypt and verify the data.
bytes to read
#GstMIKEYDecryptInfo
Structure holding the information of the MIKEY message