pub enum DecapsError {
InvalidCiphertext,
InvalidDecapsKey,
InvalidDecapsKeyLength,
InvalidCiphertextLength,
InvalidSharedSecretLength,
Unknown,
}Expand description
Error indicating that decapsulating failed
Variants§
InvalidCiphertext
Ciphertext key is invalid
InvalidDecapsKey
Decapsulation key is invalid
InvalidDecapsKeyLength
The provided decapulation key has the wrong length
InvalidCiphertextLength
The provided ciphertext has the wrong length
The provided shared secret has the wrong length
Unknown
An unknown error occurred
Trait Implementations§
Source§impl Debug for DecapsError
impl Debug for DecapsError
Source§impl Display for DecapsError
impl Display for DecapsError
Source§impl From<DecapsError> for DecapsError
impl From<DecapsError> for DecapsError
Source§fn from(value: DecapsError) -> Self
fn from(value: DecapsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecapsError
impl RefUnwindSafe for DecapsError
impl Send for DecapsError
impl Sync for DecapsError
impl Unpin for DecapsError
impl UnwindSafe for DecapsError
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