pub enum MlDsaError {
ContextTooLong,
InvalidSignature,
InvalidPublicKey,
InvalidSignatureLength,
RetryLimitExceeded,
Random(RandomError),
}Variants§
ContextTooLong
InvalidSignature
InvalidPublicKey
InvalidSignatureLength
RetryLimitExceeded
The signing rejection loop exceeded the FIPS 204 Table 3 limit of 814 iterations. This is statistically impossible in practice and indicates a fault or a broken random number generator rather than a valid signature.
Random(RandomError)
Trait Implementations§
Source§impl Clone for MlDsaError
impl Clone for MlDsaError
impl Copy for MlDsaError
Source§impl Debug for MlDsaError
impl Debug for MlDsaError
Source§impl Display for MlDsaError
Available on crate feature alloc only.
impl Display for MlDsaError
Available on crate feature
alloc only.impl Eq for MlDsaError
Source§impl From<RandomError> for MlDsaError
impl From<RandomError> for MlDsaError
Source§fn from(err: RandomError) -> Self
fn from(err: RandomError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MlDsaError
impl PartialEq for MlDsaError
impl StructuralPartialEq for MlDsaError
Auto Trait Implementations§
impl Freeze for MlDsaError
impl RefUnwindSafe for MlDsaError
impl Send for MlDsaError
impl Sync for MlDsaError
impl Unpin for MlDsaError
impl UnsafeUnpin for MlDsaError
impl UnwindSafe for MlDsaError
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