pub enum InternalError {
HashToScalar,
HkdfError,
HmacError,
KsfError,
SealOpenHmacError,
IncompatibleEnvelopeModeError,
OprfError(Error),
OprfInternalError(InternalError),
}Expand description
Represents an error in the manipulation of internal cryptographic data
Variants§
HashToScalar
Size of input is empty or longer then u16::MAX.
HkdfError
Computing HKDF failed while deriving subkeys
HmacError
Computing HMAC failed while supplying a secret key
KsfError
Computing the key stretching function failed
SealOpenHmacError
This error occurs when the envelope seal open hmac check fails HMAC check in seal open failed.
IncompatibleEnvelopeModeError
This error occurs when attempting to open an envelope of the wrong type (base mode, custom identifier)
OprfError(Error)
Error from the OPRF evaluation
OprfInternalError(InternalError)
Error from the OPRF evaluation
Trait Implementations§
Source§impl Clone for InternalError
impl Clone for InternalError
Source§fn clone(&self) -> InternalError
fn clone(&self) -> InternalError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InternalError
impl Debug for InternalError
Source§impl Display for InternalError
impl Display for InternalError
Source§impl Error for InternalError
impl Error for InternalError
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<Error> for InternalError
impl From<Error> for InternalError
Source§impl<T> From<InternalError> for ProtocolError<T>
impl<T> From<InternalError> for ProtocolError<T>
Source§fn from(e: InternalError) -> ProtocolError<T>
fn from(e: InternalError) -> ProtocolError<T>
Converts to this type from the input type.
Source§impl Hash for InternalError
impl Hash for InternalError
Source§impl Ord for InternalError
impl Ord for InternalError
Source§fn cmp(&self, other: &InternalError) -> Ordering
fn cmp(&self, other: &InternalError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InternalError
impl PartialEq for InternalError
Source§impl PartialOrd for InternalError
impl PartialOrd for InternalError
impl Copy for InternalError
impl Eq for InternalError
impl StructuralPartialEq for InternalError
Auto Trait Implementations§
impl Freeze for InternalError
impl RefUnwindSafe for InternalError
impl Send for InternalError
impl Sync for InternalError
impl Unpin for InternalError
impl UnwindSafe for InternalError
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