esp_idf_sys

Type Alias psa_aead_operation_t

Source
pub type psa_aead_operation_t = psa_aead_operation_s;
Expand description

The type of the state data structure for multipart AEAD operations.

Before calling any function on an AEAD operation object, the application must initialize it by any of the following means:

  • Set the structure to all-bits-zero, for example: \code psa_aead_operation_t operation; memset(&operation, 0, sizeof(operation)); \endcode
  • Initialize the structure to logical zero values, for example: \code psa_aead_operation_t operation = {0}; \endcode
  • Initialize the structure to the initializer #PSA_AEAD_OPERATION_INIT, for example: \code psa_aead_operation_t operation = PSA_AEAD_OPERATION_INIT; \endcode
  • Assign the result of the function psa_aead_operation_init() to the structure, for example: \code psa_aead_operation_t operation; operation = psa_aead_operation_init(); \endcode

This is an implementation-defined \c struct. Applications should not make any assumptions about the content of this structure. Implementation details can change in future versions without notice.

Aliased Type§

struct psa_aead_operation_t {
    pub private_id: u32,
    pub private_alg: u32,
    pub private_key_type: u16,
    pub private_ad_remaining: usize,
    pub private_body_remaining: usize,
    pub _bitfield_align_1: [u8; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
    pub private_ctx: psa_driver_aead_context_t,
}

Fields§

§private_id: u32§private_alg: u32§private_key_type: u16§private_ad_remaining: usize§private_body_remaining: usize§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§private_ctx: psa_driver_aead_context_t

Implementations

Source§

impl psa_aead_operation_s

Source

pub fn private_nonce_set(&self) -> c_uint

Source

pub fn set_private_nonce_set(&mut self, val: c_uint)

Source

pub unsafe fn private_nonce_set_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_private_nonce_set_raw(this: *mut Self, val: c_uint)

Source

pub fn private_lengths_set(&self) -> c_uint

Source

pub fn set_private_lengths_set(&mut self, val: c_uint)

Source

pub unsafe fn private_lengths_set_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_private_lengths_set_raw(this: *mut Self, val: c_uint)

Source

pub fn private_ad_started(&self) -> c_uint

Source

pub fn set_private_ad_started(&mut self, val: c_uint)

Source

pub unsafe fn private_ad_started_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_private_ad_started_raw(this: *mut Self, val: c_uint)

Source

pub fn private_body_started(&self) -> c_uint

Source

pub fn set_private_body_started(&mut self, val: c_uint)

Source

pub unsafe fn private_body_started_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_private_body_started_raw(this: *mut Self, val: c_uint)

Source

pub fn private_is_encrypt(&self) -> c_uint

Source

pub fn set_private_is_encrypt(&mut self, val: c_uint)

Source

pub unsafe fn private_is_encrypt_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_private_is_encrypt_raw(this: *mut Self, val: c_uint)

Source

pub fn new_bitfield_1( private_nonce_set: c_uint, private_lengths_set: c_uint, private_ad_started: c_uint, private_body_started: c_uint, private_is_encrypt: c_uint, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations

Source§

impl Clone for psa_aead_operation_s

Source§

fn clone(&self) -> psa_aead_operation_s

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for psa_aead_operation_s

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for psa_aead_operation_s