Struct gstreamer_sdp::MIKEYPayload[]

pub struct MIKEYPayload(_);

Hold the common fields for all payloads

Methods

impl MIKEYPayload
[src]

Make a new MIKEYPayload with type_.

type_

a MIKEYPayloadType

Returns

a new MIKEYPayload or None on failure.

Get the number of sub payloads of self. self should be of type MIKEYPayloadType::Kemac.

Returns

the number of sub payloads in self

Remove the sub payload at idx in self.

idx

the index to remove

Returns

true on success.

Set the KEMAC parameters. self should point to a MIKEYPayloadType::Kemac payload.

enc_alg

the MIKEYEncAlg

mac_alg

a MIKEYMacAlg

Returns

true on success

Set key_len bytes of key_data of type key_type as the key for the MIKEYPayloadType::KeyData self.

key_type

a MIKEYKeyDataType

key_len

the length of key_data

key_data

the key of type key_type

Returns

true on success

Set the salt key data. If salt_len is 0 and salt_data is None, the salt data will be removed.

salt_len

the length of salt_data

salt_data

the salt

Returns

true on success

Set the SPI/MKI validity in the MIKEYPayloadType::KeyData self.

spi_len

the length of spi_data

spi_data

the SPI/MKI data

Returns

true on success

Set the PKE values in self. self must be of type MIKEYPayloadType::Pke.

C

envelope key cache indicator

data_len

the length of data

data

the encrypted envelope key

Returns

true on success

Set the random values in a MIKEYPayloadType::Rand self.

len

the length of rand

rand

random values

Returns

true on success

Add a new parameter to the MIKEYPayloadType::Sp self with type_, len and val.

type_

a type

len

a length

val

len bytes of data

Returns

true on success

Get the number of security policy parameters in a MIKEYPayloadType::Sp self.

Returns

the number of parameters in self

Remove the Security Policy parameters from a MIKEYPayloadType::Sp self at idx.

idx

an index

Returns

true on success

Set the Security Policy parameters for self.

policy

the policy number

proto

a MIKEYSecProto

Returns

true on success

Trait Implementations

impl Debug for MIKEYPayload
[src]

Formats the value using the given formatter. Read more

impl PartialEq for MIKEYPayload
[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 MIKEYPayload
[src]

impl PartialOrd for MIKEYPayload
[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 MIKEYPayload
[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 MIKEYPayload
[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 MIKEYPayload

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl StaticType for MIKEYPayload

Returns the type identifier of Self.

impl Send for MIKEYPayload
[src]

Auto Trait Implementations

impl !Sync for MIKEYPayload