pub enum DrbgError {
RequestTooLarge,
ReseedRequired,
EntropyUnavailable,
EntropyHealthFailed,
}Expand description
Errors surfaced by deterministic random bit generators inside the crypto module.
Variants§
RequestTooLarge
Generated output exceeded the maximum request length.
ReseedRequired
Generator must be reseeded with fresh entropy before more output is produced.
Underlying entropy source failed.
EntropyHealthFailed
Entropy health check failed (weak or repeated seed material).
Trait Implementations§
Source§impl Error for DrbgError
impl Error for DrbgError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DrbgError> for CryptoError
impl From<DrbgError> for CryptoError
Source§impl From<Error> for DrbgError
impl From<Error> for DrbgError
Source§fn from(value: InnerError) -> Self
fn from(value: InnerError) -> Self
Converts to this type from the input type.
impl Copy for DrbgError
impl Eq for DrbgError
impl StructuralPartialEq for DrbgError
Auto Trait Implementations§
impl Freeze for DrbgError
impl RefUnwindSafe for DrbgError
impl Send for DrbgError
impl Sync for DrbgError
impl Unpin for DrbgError
impl UnwindSafe for DrbgError
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