Enum pqc_kyber::KyberError
source · pub enum KyberError {
InvalidInput,
Decapsulation,
RandomBytesGeneration,
}
Expand description
Error types for the failure modes
Variants§
InvalidInput
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.
Decapsulation
The ciphertext was unable to be authenticated. The shared secret was not decapsulated.
RandomBytesGeneration
Error trying to fill random bytes (i.e external (hardware) RNG modules can fail).
Trait Implementations§
source§impl Debug for KyberError
impl Debug for KyberError
source§impl Display for KyberError
impl Display for KyberError
source§impl PartialEq<KyberError> for KyberError
impl PartialEq<KyberError> for KyberError
source§fn eq(&self, other: &KyberError) -> bool
fn eq(&self, other: &KyberError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KyberError
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§
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