Struct mbedtls_sys::cipher_context_t
source · [−]#[repr(C)]pub struct cipher_context_t {
pub cipher_info: *const cipher_info_t,
pub key_bitlen: c_int,
pub operation: operation_t,
pub add_padding: Option<unsafe extern "C" fn(output: *mut c_uchar, olen: size_t, data_len: size_t)>,
pub get_padding: Option<unsafe extern "C" fn(input: *mut c_uchar, ilen: size_t, data_len: *mut size_t) -> c_int>,
pub unprocessed_data: [c_uchar; 16],
pub unprocessed_len: size_t,
pub iv: [c_uchar; 16],
pub iv_size: size_t,
pub cipher_ctx: *mut c_void,
pub cmac_ctx: *mut cmac_context_t,
}
Fields
cipher_info: *const cipher_info_t
key_bitlen: c_int
operation: operation_t
add_padding: Option<unsafe extern "C" fn(output: *mut c_uchar, olen: size_t, data_len: size_t)>
get_padding: Option<unsafe extern "C" fn(input: *mut c_uchar, ilen: size_t, data_len: *mut size_t) -> c_int>
unprocessed_data: [c_uchar; 16]
unprocessed_len: size_t
iv: [c_uchar; 16]
iv_size: size_t
cipher_ctx: *mut c_void
cmac_ctx: *mut cmac_context_t
Trait Implementations
sourceimpl Clone for cipher_context_t
impl Clone for cipher_context_t
sourcefn clone(&self) -> cipher_context_t
fn clone(&self) -> cipher_context_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for cipher_context_t
impl Default for cipher_context_t
impl Copy for cipher_context_t
Auto Trait Implementations
impl RefUnwindSafe for cipher_context_t
impl !Send for cipher_context_t
impl !Sync for cipher_context_t
impl Unpin for cipher_context_t
impl UnwindSafe for cipher_context_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more