Struct sgx_tdh::SgxDhMsg3[][src]

pub struct SgxDhMsg3 {
    pub cmac: [u8; 16],
    pub msg3_body: SgxDhMsg3Body,
}

Type for MSG3 used in DH secure session establishment.

Fields

Methods

impl SgxDhMsg3
[src]

Create a SgxDhMsg3 with default values.

Calculate the size of sgx_dh_msg3_t converted from SgxDhMsg3, really add the size of struct sgx_dh_msg3_t and msg3_body.additional_prop.

Return value

The size of sgx_dh_msg3_t needed.

Convert SgxDhMsg3 to sgx_dh_msg3_t, this is an unsafe function.

Parameters

p

The pointer of a sgx_dh_msg3_t buffer to save the buffer of SgxDhMsg3.

len

The size of the sgx_dh_msg3_t buffer.

Return value

*Some(mut sgx_dh_msg3_t)

Indicates the conversion is successfully. The return value is the mutable pointer of sgx_dh_msg3_t.

None

The parameters p and len are not available for the conversion.

Convert sgx_dh_msg3_t to SgxDhMsg3, this is an unsafe function.

Parameters

p

The pointer of a sgx_dh_msg3_t buffer.

len

The size of the sgx_dh_msg3_t buffer.

Return value

Some(SgxDhMsg3)

Indicates the conversion is successfully. The return value is SgxDhMsg3.

None

The parameters p and len are not available for the conversion.

Trait Implementations

impl Clone for SgxDhMsg3
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for SgxDhMsg3
[src]

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

Auto Trait Implementations

impl Send for SgxDhMsg3

impl Sync for SgxDhMsg3