Struct esp_idf_hal::sys::mbedtls_cipher_context_t
source · #[repr(C)]pub struct mbedtls_cipher_context_t {
pub private_cipher_info: *const mbedtls_cipher_info_t,
pub private_key_bitlen: i32,
pub private_operation: i32,
pub private_add_padding: Option<unsafe extern "C" fn(_: *mut u8, _: usize, _: usize)>,
pub private_get_padding: Option<unsafe extern "C" fn(_: *mut u8, _: usize, _: *mut usize) -> i32>,
pub private_unprocessed_data: [u8; 16],
pub private_unprocessed_len: usize,
pub private_iv: [u8; 16],
pub private_iv_size: usize,
pub private_cipher_ctx: *mut c_void,
pub private_cmac_ctx: *mut mbedtls_cmac_context_t,
}
Expand description
Generic cipher context.
Fields§
§private_cipher_info: *const mbedtls_cipher_info_t
§private_key_bitlen: i32
§private_operation: i32
§private_add_padding: Option<unsafe extern "C" fn(_: *mut u8, _: usize, _: usize)>
§private_get_padding: Option<unsafe extern "C" fn(_: *mut u8, _: usize, _: *mut usize) -> i32>
§private_unprocessed_data: [u8; 16]
§private_unprocessed_len: usize
§private_iv: [u8; 16]
§private_iv_size: usize
§private_cipher_ctx: *mut c_void
§private_cmac_ctx: *mut mbedtls_cmac_context_t
Trait Implementations§
source§impl Clone for mbedtls_cipher_context_t
impl Clone for mbedtls_cipher_context_t
source§fn clone(&self) -> mbedtls_cipher_context_t
fn clone(&self) -> mbedtls_cipher_context_t
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for mbedtls_cipher_context_t
impl Debug for mbedtls_cipher_context_t
source§impl Default for mbedtls_cipher_context_t
impl Default for mbedtls_cipher_context_t
source§fn default() -> mbedtls_cipher_context_t
fn default() -> mbedtls_cipher_context_t
Returns the “default value” for a type. Read more
impl Copy for mbedtls_cipher_context_t
Auto Trait Implementations§
impl Freeze for mbedtls_cipher_context_t
impl RefUnwindSafe for mbedtls_cipher_context_t
impl !Send for mbedtls_cipher_context_t
impl !Sync for mbedtls_cipher_context_t
impl Unpin for mbedtls_cipher_context_t
impl UnwindSafe for mbedtls_cipher_context_t
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)