#[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: usize, data_len: usize)>,
pub get_padding: Option<unsafe extern "C" fn(input: *mut c_uchar, ilen: usize, data_len: *mut usize) -> c_int>,
pub unprocessed_data: [c_uchar; 16],
pub unprocessed_len: usize,
pub iv: [c_uchar; 16],
pub iv_size: usize,
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: usize, data_len: usize)>§get_padding: Option<unsafe extern "C" fn(input: *mut c_uchar, ilen: usize, data_len: *mut usize) -> c_int>§unprocessed_data: [c_uchar; 16]§unprocessed_len: usize§iv: [c_uchar; 16]§iv_size: usize§cipher_ctx: *mut c_void§cmac_ctx: *mut cmac_context_tTrait Implementations§
Source§impl Clone for cipher_context_t
impl Clone for cipher_context_t
Source§fn clone(&self) -> cipher_context_t
fn clone(&self) -> cipher_context_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for cipher_context_t
impl Default for cipher_context_t
impl Copy for cipher_context_t
Auto Trait Implementations§
impl Freeze for cipher_context_t
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more