Enum hpke_errors::HpkeError
source · [−]pub enum HpkeError {
Show 13 variants
ValidationError,
DeserializeError,
EncapError,
DecapError,
OpenError,
MessageLimitReachedError,
DeriveKeyPairError,
InconsistentPskInputs,
UnnecessaryPsk,
MissingPsk,
UnsupportedAlgorithm,
InvalidParameters,
CryptoError,
}
Expand description
Explicit errors generated throughout this specification.
Variants
ValidationError
KEM input or output validation failure.
DeserializeError
Public or private key deserialization failure.
EncapError
Encap()
failure.
DecapError
Decap()
failure.
OpenError
Context AEAD Open()
failure.
MessageLimitReachedError
Context AEAD sequence number overflow.
DeriveKeyPairError
Key pair derivation failure.
InconsistentPskInputs
PSK inputs are inconsistent.
UnnecessaryPsk
PSK input provided when not needed.
MissingPsk
Missing required PSK input.
UnsupportedAlgorithm
An algorithm is not supported by the implementation.
InvalidParameters
Parameters to an algorithm are inconsistent or wrong.
CryptoError
An opaque error happened in a crypto operation outside of this code.
Trait Implementations
impl Copy for HpkeError
impl StructuralPartialEq for HpkeError
Auto Trait Implementations
impl RefUnwindSafe for HpkeError
impl Send for HpkeError
impl Sync for HpkeError
impl Unpin for HpkeError
impl UnwindSafe for HpkeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more