pub enum OreError {
InitFailed,
PrpError(PrpError),
RandError(Error),
}Expand description
Errors returned by OreCipher initialisation and encryption.
Variants§
InitFailed
Cipher initialisation failed (e.g., key material rejected by an underlying primitive).
PrpError(PrpError)
A pseudo-random permutation primitive returned an error.
RandError(Error)
The OS or seeded RNG failed to produce random bytes (used for the per-ciphertext nonce).
Trait Implementations§
Source§impl Error for OreError
impl Error for OreError
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()
Auto Trait Implementations§
impl Freeze for OreError
impl !RefUnwindSafe for OreError
impl Send for OreError
impl Sync for OreError
impl Unpin for OreError
impl UnsafeUnpin for OreError
impl !UnwindSafe for OreError
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