Enum pqc_kyber::KyberError [−][src]
pub enum KyberError { InvalidInput, Decapsulation, }
Expand description
Error types for the failure modes
Variants
One or more inputs to a function are incorrectly sized. A likely cause of this is two parties using different security levels while trying to negotiate a key exchange.
The ciphertext was unable to be authenticated. The shared secret was not decapsulated.
Trait Implementations
impl Debug for KyberError
[src]
impl Debug for KyberError
[src]impl Display for KyberError
[src]
impl Display for KyberError
[src]impl PartialEq<KyberError> for KyberError
[src]
impl PartialEq<KyberError> for KyberError
[src]impl StructuralPartialEq for KyberError
[src]
Auto Trait Implementations
impl RefUnwindSafe for KyberError
impl Send for KyberError
impl Sync for KyberError
impl Unpin for KyberError
impl UnwindSafe for KyberError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more