pub struct CtrDrbg<'entropy> { /* private fields */ }
Implementations
sourceimpl<'entropy> CtrDrbg<'entropy>
impl<'entropy> CtrDrbg<'entropy>
pub fn new<F: EntropyCallback>(
source: &'entropy mut F,
additional_entropy: Option<&[u8]>
) -> Result<CtrDrbg<'entropy>>
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
Auto Trait Implementations
impl<'entropy> RefUnwindSafe for CtrDrbg<'entropy>
impl<'entropy> !Send for CtrDrbg<'entropy>
impl<'entropy> !Sync for CtrDrbg<'entropy>
impl<'entropy> Unpin for CtrDrbg<'entropy>
impl<'entropy> UnwindSafe for CtrDrbg<'entropy>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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