pub enum EncapsError {
InvalidEncapsKey,
InvalidRandomness,
InvalidRandomnessLength,
InvalidEncapsKeyLength,
InvalidCiphertextLength,
InvalidSharedSecretLength,
Unknown,
}Expand description
Error indicating that encapsulating failed
Variants§
InvalidEncapsKey
Encapsulation key is invalid
InvalidRandomness
Error encapsulating key with provided randomness
InvalidRandomnessLength
The provided randomness has the wrong length
InvalidEncapsKeyLength
The provided encapsulation 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 EncapsError
impl Debug for EncapsError
Source§impl Display for EncapsError
impl Display for EncapsError
Source§impl From<EncapsError> for EncapsError
impl From<EncapsError> for EncapsError
Source§fn from(value: EncapsError) -> Self
fn from(value: EncapsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncapsError
impl RefUnwindSafe for EncapsError
impl Send for EncapsError
impl Sync for EncapsError
impl Unpin for EncapsError
impl UnwindSafe for EncapsError
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