pub enum SignCryptError {
InvalidLength,
Mismatch,
Encryption,
Decryption,
NonCanonicalSig,
Generic,
}
Expand description
Signcryption failure modes
Variants§
InvalidLength
Additional Authenticated Data provided to crate::sign_before
and crate::verify_before
functions is larger than the allowed maximum of 255 bytes.
Mismatch
The signature was unable to be verified after decryption
Encryption
Error occurred during the encryption phase of crate::signcrypt
Decryption
Error occurred during decryption phase of crate::unsigncrypt
NonCanonicalSig
The signature is not canonical
Generic
Catch-all for other errors
Trait Implementations§
Source§impl Clone for SignCryptError
impl Clone for SignCryptError
Source§fn clone(&self) -> SignCryptError
fn clone(&self) -> SignCryptError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SignCryptError
impl Debug for SignCryptError
Source§impl PartialEq for SignCryptError
impl PartialEq for SignCryptError
impl Eq for SignCryptError
impl StructuralPartialEq for SignCryptError
Auto Trait Implementations§
impl Freeze for SignCryptError
impl RefUnwindSafe for SignCryptError
impl Send for SignCryptError
impl Sync for SignCryptError
impl Unpin for SignCryptError
impl UnwindSafe for SignCryptError
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