pub struct Drbg { /* private fields */ }
Implementations§
source§impl Drbg
impl Drbg
sourcepub fn new(
alg: Algorithm,
entropy: &[u8],
nonce: &[u8],
personalization: &str,
) -> Result<Self, Error>
pub fn new( alg: Algorithm, entropy: &[u8], nonce: &[u8], personalization: &str, ) -> Result<Self, Error>
Create a new DRBG state with the given hash function. This also initializes the DRBG state with the given entropy, nonce and personalization string.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Drbg
impl RefUnwindSafe for Drbg
impl !Send for Drbg
impl !Sync for Drbg
impl Unpin for Drbg
impl UnwindSafe for Drbg
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