#[repr(C)]pub struct CtrDrbg { /* private fields */ }
Implementations§
source§impl CtrDrbg
impl CtrDrbg
pub fn new<T: EntropyCallback + 'static>( entropy: Arc<T>, additional_entropy: Option<&[u8]> ) -> Result<Self>
pub fn with_mut_entropy<T: EntropyCallbackMut + 'static>( entropy: T, additional_entropy: Option<&[u8]> ) -> Result<Self>
pub fn prediction_resistance(&self) -> bool
pub fn set_prediction_resistance(&mut self, pr: bool)
pub fn entropy_len(&self) -> size_t
pub fn set_entropy_len(&mut self, len: size_t)
pub fn reseed_interval(&self) -> c_int
pub fn set_reseed_interval(&mut self, i: c_int)
pub fn reseed(&mut self, additional_entropy: Option<&[u8]>) -> Result<()>
pub fn update(&mut self, entropy: &[u8])
Trait Implementations§
source§impl<'a> Into<*const ctr_drbg_context> for &'a CtrDrbg
impl<'a> Into<*const ctr_drbg_context> for &'a CtrDrbg
source§fn into(self) -> *const ctr_drbg_context
fn into(self) -> *const ctr_drbg_context
Converts this type into the (usually inferred) input type.
source§impl<'a> Into<*mut ctr_drbg_context> for &'a mut CtrDrbg
impl<'a> Into<*mut ctr_drbg_context> for &'a mut CtrDrbg
source§fn into(self) -> *mut ctr_drbg_context
fn into(self) -> *mut ctr_drbg_context
Converts this type into the (usually inferred) input type.
source§impl RngCallback for CtrDrbg
impl RngCallback for CtrDrbg
source§impl RngCallbackMut for CtrDrbg
impl RngCallbackMut for CtrDrbg
impl Send for CtrDrbg
impl Sync for CtrDrbg
Auto Trait Implementations§
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