pub struct HmacDrbg { /* private fields */ }
Implementations§
source§impl HmacDrbg
impl HmacDrbg
pub fn new<T: EntropyCallback + 'static>( md_info: MdInfo, entropy: Arc<T>, additional_entropy: Option<&[u8]> ) -> Result<HmacDrbg>
pub fn from_buf(md_info: MdInfo, entropy: &[u8]) -> Result<HmacDrbg>
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 hmac_drbg_context> for &'a HmacDrbg
impl<'a> Into<*const hmac_drbg_context> for &'a HmacDrbg
source§fn into(self) -> *const hmac_drbg_context
fn into(self) -> *const hmac_drbg_context
Converts this type into the (usually inferred) input type.
source§impl<'a> Into<*mut hmac_drbg_context> for &'a mut HmacDrbg
impl<'a> Into<*mut hmac_drbg_context> for &'a mut HmacDrbg
source§fn into(self) -> *mut hmac_drbg_context
fn into(self) -> *mut hmac_drbg_context
Converts this type into the (usually inferred) input type.
source§impl RngCallback for HmacDrbg
impl RngCallback for HmacDrbg
source§impl RngCallbackMut for HmacDrbg
impl RngCallbackMut for HmacDrbg
impl Send for HmacDrbg
impl Sync for HmacDrbg
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