Enum custodian_password::error::InternalError [−]
pub enum InternalError<T = Infallible> {
Show 13 variants
Custom(T),
InvalidByteSequence,
SizeError {
name: &'static str,
len: usize,
actual_len: usize,
},
PointError,
HashToCurveError,
HkdfError,
HmacError,
SlowHashError,
SealOpenHmacError,
IncompatibleEnvelopeModeError,
InvalidInnerEnvelopeError,
OprfError(InternalError),
InvalidKeypairError,
}
Expand description
Represents an error in the manipulation of internal cryptographic data
Variants
Custom(T)
Custom SecretKey
error type
InvalidByteSequence
Deserializing from a byte sequence failed
SizeError
Invalid length for {name}: expected {len}, but is actually {actual_len}.
PointError
Could not decompress point.
HashToCurveError
Computing the hash-to-curve function failed
HkdfError
Computing HKDF failed while deriving subkeys
HmacError
Computing HMAC failed while supplying a secret key
SlowHashError
Computing the slow hashing 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)
InvalidInnerEnvelopeError
This error occurs when the inner envelope is malformed
OprfError(InternalError)
Error from the OPRF evaluation
InvalidKeypairError
Error encountered when attempting to produce a keypair
Implementations
impl InternalError<Infallible>
impl InternalError<Infallible>
pub fn into_custom<T>(self) -> InternalError<T>
pub fn into_custom<T>(self) -> InternalError<T>
Convert InternalError<Infallible>
into `InternalError
Trait Implementations
impl<T> Clone for InternalError<T> where
T: Clone,
impl<T> Clone for InternalError<T> where
T: Clone,
pub fn clone(&self) -> InternalError<T>
pub fn clone(&self) -> InternalError<T>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<T> Debug for InternalError<T> where
T: Debug,
impl<T> Debug for InternalError<T> where
T: Debug,
impl<T> Display for InternalError<T>
impl<T> Display for InternalError<T>
impl<T> Error for InternalError<T> where
T: Error,
impl<T> Error for InternalError<T> where
T: Error,
impl<T> From<InternalError<T>> for ProtocolError<T>
impl<T> From<InternalError<T>> for ProtocolError<T>
pub fn from(e: InternalError<T>) -> ProtocolError<T>
pub fn from(e: InternalError<T>) -> ProtocolError<T>
Performs the conversion.
impl From<InternalError> for InternalError<Infallible>
impl From<InternalError> for InternalError<Infallible>
pub fn from(voprf_error: InternalError) -> InternalError<Infallible>
pub fn from(voprf_error: InternalError) -> InternalError<Infallible>
Performs the conversion.
impl<T> Hash for InternalError<T> where
T: Hash,
impl<T> Hash for InternalError<T> where
T: Hash,
impl<T> PartialEq<InternalError<T>> for InternalError<T> where
T: PartialEq<T>,
impl<T> PartialEq<InternalError<T>> for InternalError<T> where
T: PartialEq<T>,
pub fn eq(&self, other: &InternalError<T>) -> bool
pub fn eq(&self, other: &InternalError<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &InternalError<T>) -> bool
pub fn ne(&self, other: &InternalError<T>) -> bool
This method tests for !=
.
impl<T> Eq for InternalError<T> where
T: Eq,
impl<T> StructuralEq for InternalError<T>
impl<T> StructuralPartialEq for InternalError<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for InternalError<T> where
T: RefUnwindSafe,
impl<T> Send for InternalError<T> where
T: Send,
impl<T> Sync for InternalError<T> where
T: Sync,
impl<T> Unpin for InternalError<T> where
T: Unpin,
impl<T> UnwindSafe for InternalError<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more