pub enum PqcError {
Show 13 variants
UnsupportedAlgorithm(String),
InvalidKey(String),
InvalidSignature(String),
KeyGenerationFailed(String),
SigningFailed(String),
VerificationFailed(String),
EncryptionFailed(String),
DecapsulationFailed(String),
HybridFailed(String),
SerializationError(String),
LiboqsNotAvailable,
RandomGenerationFailed,
InvalidParameter(String),
}Expand description
Error types for post-quantum cryptography
Variants§
UnsupportedAlgorithm(String)
Algorithm not supported
InvalidKey(String)
Invalid key format
InvalidSignature(String)
Invalid signature format
KeyGenerationFailed(String)
Key generation failed
SigningFailed(String)
Signing failed
VerificationFailed(String)
Verification failed
EncryptionFailed(String)
Encryption/Encapsulation failed
DecapsulationFailed(String)
Decapsulation failed
HybridFailed(String)
Hybrid composition failed
SerializationError(String)
Serialization error
LiboqsNotAvailable
liboqs not available
RandomGenerationFailed
Random number generation failed
InvalidParameter(String)
Invalid parameter
Trait Implementations§
Source§impl Error for PqcError
impl Error for PqcError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PqcError
impl RefUnwindSafe for PqcError
impl Send for PqcError
impl Sync for PqcError
impl Unpin for PqcError
impl UnsafeUnpin for PqcError
impl UnwindSafe for PqcError
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