#[repr(C)]pub struct ctr_drbg_context {
pub counter: [c_uchar; 16],
pub reseed_counter: c_int,
pub prediction_resistance: c_int,
pub entropy_len: usize,
pub reseed_interval: c_int,
pub aes_ctx: aes_context,
pub f_entropy: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: usize) -> c_int>,
pub p_entropy: *mut c_void,
pub mutex: threading_mutex_t,
}Fields§
§counter: [c_uchar; 16]§reseed_counter: c_int§prediction_resistance: c_int§entropy_len: usize§reseed_interval: c_int§aes_ctx: aes_context§f_entropy: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: usize) -> c_int>§p_entropy: *mut c_void§mutex: threading_mutex_tTrait Implementations§
Source§impl Clone for ctr_drbg_context
impl Clone for ctr_drbg_context
Source§fn clone(&self) -> ctr_drbg_context
fn clone(&self) -> ctr_drbg_context
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 ctr_drbg_context
impl Default for ctr_drbg_context
impl Copy for ctr_drbg_context
Auto Trait Implementations§
impl Freeze for ctr_drbg_context
impl RefUnwindSafe for ctr_drbg_context
impl !Send for ctr_drbg_context
impl !Sync for ctr_drbg_context
impl Unpin for ctr_drbg_context
impl UnwindSafe for ctr_drbg_context
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