pub enum RNGError {
GenericError(&'static str),
Uninitialized,
InsufficientSeedEntropy,
ReseedRequired,
SecurityStrengthInsufficientForAlgorithm,
KeyMaterialError(KeyMaterialError),
}Expand description
Variants§
GenericError(&'static str)
Uninitialized
Attempting to extract output before the RNG has been seeded.
InsufficientSeedEntropy
The RNG has been seeded, but not sufficiently to support the requested generation operation. This includes uses in SP 800-90A mode where more output is requested than the security strength to which the RNG has been initialized.
ReseedRequired
Indicates that the RNG cannot produce any more output until it has been reseeded with fresh entropy.
SecurityStrengthInsufficientForAlgorithm
Thrown my algorithms attempting to use an RNG instance, for example for key generation or other randomness required by the algorithm, but the provided RNG is at a lower security strength than the algorithm requires.
KeyMaterialError(KeyMaterialError)
Trait Implementations§
Source§impl From<KeyMaterialError> for RNGError
impl From<KeyMaterialError> for RNGError
Source§fn from(e: KeyMaterialError) -> RNGError
fn from(e: KeyMaterialError) -> RNGError
Converts to this type from the input type.
Source§impl From<RNGError> for SignatureError
impl From<RNGError> for SignatureError
Source§fn from(e: RNGError) -> SignatureError
fn from(e: RNGError) -> SignatureError
Converts to this type from the input type.
Source§impl From<RNGError> for SymmetricCipherError
impl From<RNGError> for SymmetricCipherError
Source§fn from(e: RNGError) -> SymmetricCipherError
fn from(e: RNGError) -> SymmetricCipherError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RNGError
impl RefUnwindSafe for RNGError
impl Send for RNGError
impl Sync for RNGError
impl Unpin for RNGError
impl UnsafeUnpin for RNGError
impl UnwindSafe for RNGError
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