Enum pqc_kyber::KyberError
source · pub enum KyberError {
InvalidInput,
Decapsulation,
}
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.
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 ==
.