pub enum HpkeError {
OpenError,
InvalidConfig,
InvalidInput,
UnknownMode,
InconsistentPsk,
MissingPsk,
UnnecessaryPsk,
InsecurePsk,
CryptoError(String),
MessageLimitReached,
InsufficientRandomness,
}
Expand description
HPKE Error types.
Variants§
OpenError
Error opening an HPKE ciphertext.
InvalidConfig
Invalid configuration or arguments.
InvalidInput
Invalid input.
UnknownMode
Unknown HPKE mode.
InconsistentPsk
Inconsistent PSK input.
MissingPsk
PSK input is required but missing.
UnnecessaryPsk
PSK input is provided but not needed.
InsecurePsk
PSK input is too short (needs to be at least 32 bytes).
CryptoError(String)
An error in the crypto library occurred.
MessageLimitReached
The message limit for this AEAD, key, and nonce.
InsufficientRandomness
Unable to collect enough randomness.
Trait Implementations§
source§impl PartialEq for HpkeError
impl PartialEq 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§
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