pub struct EntropyValidator { /* private fields */ }Expand description
Entropy validator for cryptographic inputs
This validator provides utilities to validate the entropy quality of cryptographic inputs to ensure they meet security requirements.
Implementations§
Source§impl EntropyValidator
impl EntropyValidator
Sourcepub fn validate_key_entropy(&self, key_data: &[u8]) -> Result<()>
pub fn validate_key_entropy(&self, key_data: &[u8]) -> Result<()>
Sourcepub fn set_min_entropy_bits(&mut self, min_entropy_bits: usize)
pub fn set_min_entropy_bits(&mut self, min_entropy_bits: usize)
Sourcepub fn min_entropy_bits(&self) -> usize
pub fn min_entropy_bits(&self) -> usize
Sourcepub fn set_entropy_validation(&mut self, enabled: bool)
pub fn set_entropy_validation(&mut self, enabled: bool)
Sourcepub fn is_entropy_validation_enabled(&self) -> bool
pub fn is_entropy_validation_enabled(&self) -> bool
Check if entropy validation is enabled
§Returns
Returns true if entropy validation is enabled, false otherwise.
Trait Implementations§
Source§impl Clone for EntropyValidator
impl Clone for EntropyValidator
Source§fn clone(&self) -> EntropyValidator
fn clone(&self) -> EntropyValidator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EntropyValidator
impl RefUnwindSafe for EntropyValidator
impl Send for EntropyValidator
impl Sync for EntropyValidator
impl Unpin for EntropyValidator
impl UnsafeUnpin for EntropyValidator
impl UnwindSafe for EntropyValidator
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