pub enum RNGFactory {
HashDRBG_SHA256(HashDRBG_SHA256),
HashDRBG_SHA512(HashDRBG_SHA512),
}Expand description
All members must impl RNG.
Variants§
HashDRBG_SHA256(HashDRBG_SHA256)
HashDRBG_SHA512(HashDRBG_SHA512)
Trait Implementations§
Source§impl AlgorithmFactory for RNGFactory
impl AlgorithmFactory for RNGFactory
Source§fn default_128_bit() -> Self
fn default_128_bit() -> Self
Get the default configured algorithm at the 128-bit security level.
Source§fn default_256_bit() -> Self
fn default_256_bit() -> Self
Get the default configured algorithm at the 256-bit security level.
Source§impl Default for RNGFactory
impl Default for RNGFactory
Source§impl RNG for RNGFactory
impl RNG for RNGFactory
fn add_seed_keymaterial( &mut self, additional_seed: impl KeyMaterial, ) -> Result<(), RNGError>
fn next_int(&mut self) -> Result<u32, RNGError>
Source§fn next_bytes(&mut self, len: usize) -> Result<Vec<u8>, RNGError>
fn next_bytes(&mut self, len: usize) -> Result<Vec<u8>, RNGError>
Returns the number of requested bytes.
Source§fn next_bytes_out(&mut self, out: &mut [u8]) -> Result<usize, RNGError>
fn next_bytes_out(&mut self, out: &mut [u8]) -> Result<usize, RNGError>
Returns the number of bytes written.
fn fill_keymaterial_out( &mut self, out: &mut impl KeyMaterial, ) -> Result<usize, RNGError>
Source§fn security_strength(&self) -> SecurityStrength
fn security_strength(&self) -> SecurityStrength
Returns the Security Strength of this RNG.
Auto Trait Implementations§
impl Freeze for RNGFactory
impl RefUnwindSafe for RNGFactory
impl Send for RNGFactory
impl Sync for RNGFactory
impl Unpin for RNGFactory
impl UnwindSafe for RNGFactory
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