Struct esp_idf_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: c_int,
pub private_operation: mbedtls_operation_t,
pub private_add_padding: Option<unsafe extern "C" fn(output: *mut c_uchar, olen: usize, data_len: usize)>,
pub private_get_padding: Option<unsafe extern "C" fn(input: *mut c_uchar, ilen: usize, data_len: *mut usize) -> c_int>,
pub private_unprocessed_data: [c_uchar; 16],
pub private_unprocessed_len: usize,
pub private_iv: [c_uchar; 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: c_int
§private_operation: mbedtls_operation_t
§private_add_padding: Option<unsafe extern "C" fn(output: *mut c_uchar, olen: usize, data_len: usize)>
§private_get_padding: Option<unsafe extern "C" fn(input: *mut c_uchar, ilen: usize, data_len: *mut usize) -> c_int>
§private_unprocessed_data: [c_uchar; 16]
§private_unprocessed_len: usize
§private_iv: [c_uchar; 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
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
)