Struct gstreamer_sdp::MIKEYMessage[]

pub struct MIKEYMessage(_);

Structure holding the information of the MIKEY message

Methods

impl MIKEYMessage
[src]

Make a new MIKEY message.

Returns

a new MIKEYMessage on success

Makes mikey message including:

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

caps

a gst::Caps, including SRTP parameters (srtp/srtcp cipher, authorization, key data)

Returns

a MIKEYMessage, or None if there is no srtp information in the caps.

Add a Crypto policy for SRTP to self.

policy

The security policy applied for the stream with ssrc

ssrc

the SSRC that must be used for the stream

roc

current rollover counter

Returns

true on success

Add a new PKE payload to self with the given parameters.

C

envelope key cache indicator

data_len

the length of data

data

the encrypted envelope key

Returns

true on success

Add a new RAND payload to self with the given parameters.

len

the length of rand

rand

random data

Returns

true on success

Add a new RAND payload to self with len random bytes.

len

length

Returns

true on success

Add a new T payload to self that contains the current time in NTP-UTC format.

Returns

true on success

Find the nth occurence of the payload with type_ in self.

type_

a MIKEYPayloadType

nth

payload to find

Returns

the nth MIKEYPayload of type_.

Get the number of crypto sessions in self.

Returns

the number of crypto sessions

Get the number of payloads in self.

Returns

the number of payloads in self

Remove the SRTP policy at idx.

idx

the index to remove

Returns

true on success

Remove the payload in self at idx

idx

an index

Returns

true on success

Set the information in self.

version

a version

type_

a MIKEYType

V

verify flag

prf_func

the MIKEYPRFFunc function to use

CSB_id

the Crypto Session Bundle id

map_type

the GstMIKEYCSIDMapType

Returns

true on success

Feature: v1_8_1

caps

a gst::Caps to be filled with SRTP parameters (srtp/srtcp cipher, authorization, key data)

Returns

true on success

Trait Implementations

impl Debug for MIKEYMessage
[src]

Formats the value using the given formatter. Read more

impl PartialEq for MIKEYMessage
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for MIKEYMessage
[src]

impl PartialOrd for MIKEYMessage
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for MIKEYMessage
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for MIKEYMessage
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for MIKEYMessage

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl StaticType for MIKEYMessage

Returns the type identifier of Self.

impl Default for MIKEYMessage
[src]

Returns the "default value" for a type. Read more

impl Send for MIKEYMessage
[src]

Auto Trait Implementations

impl !Sync for MIKEYMessage