pub enum PqError {
UnknownScheme(u8),
InvalidKeyLength {
expected: usize,
got: usize,
},
VerificationFailed,
BackendFailure,
EmptyData,
}Expand description
Verification-side PQ parse/verify error.
Variants§
UnknownScheme(u8)
The prefix byte does not map to a known PQ scheme.
InvalidKeyLength
Public key bytes do not have the expected length.
VerificationFailed
Signature verification failed.
BackendFailure
Backend verification setup failed.
EmptyData
Empty encoded input.
Trait Implementations§
Source§impl Error for PqError
Available on crate feature std only.
impl Error for PqError
Available on crate feature
std only.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()
impl Eq for PqError
impl StructuralPartialEq for PqError
Auto Trait Implementations§
impl Freeze for PqError
impl RefUnwindSafe for PqError
impl Send for PqError
impl Sync for PqError
impl Unpin for PqError
impl UnsafeUnpin for PqError
impl UnwindSafe for PqError
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