pub struct HmacDrbg<'entropy> { /* private fields */ }
Implementations
sourceimpl<'entropy> HmacDrbg<'entropy>
impl<'entropy> HmacDrbg<'entropy>
pub fn new<F: EntropyCallback>(
md_info: MdInfo,
source: &'entropy mut F,
additional_entropy: Option<&[u8]>
) -> Result<HmacDrbg<'entropy>>
pub fn from_buf(md_info: MdInfo, entropy: &[u8]) -> Result<HmacDrbg<'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 HmacDrbg<'entropy>
impl<'entropy> !Send for HmacDrbg<'entropy>
impl<'entropy> !Sync for HmacDrbg<'entropy>
impl<'entropy> Unpin for HmacDrbg<'entropy>
impl<'entropy> UnwindSafe for HmacDrbg<'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