Enum cypher::EcVerifyError
source · pub enum EcVerifyError {
WeakPk,
InvalidPk(EcPkInvalid),
InvalidSignature(EcSigInvalid),
SignatureMismatch,
}
Variants§
WeakPk
public key provided for the ECDH is weak key
InvalidPk(EcPkInvalid)
InvalidSignature(EcSigInvalid)
SignatureMismatch
the provided signature does not matches public key or is not valid for the given message
Trait Implementations§
source§impl Clone for EcVerifyError
impl Clone for EcVerifyError
source§fn clone(&self) -> EcVerifyError
fn clone(&self) -> EcVerifyError
Returns a copy 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 EcVerifyError
impl Debug for EcVerifyError
source§impl Display for EcVerifyError
impl Display for EcVerifyError
source§impl Error for EcVerifyError
impl Error for EcVerifyError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<EcPkInvalid> for EcVerifyError
impl From<EcPkInvalid> for EcVerifyError
source§fn from(v: EcPkInvalid) -> Self
fn from(v: EcPkInvalid) -> Self
Converts to this type from the input type.
source§impl From<EcSigInvalid> for EcVerifyError
impl From<EcSigInvalid> for EcVerifyError
source§fn from(v: EcSigInvalid) -> Self
fn from(v: EcSigInvalid) -> Self
Converts to this type from the input type.
source§impl From<EcVerifyError> for String
impl From<EcVerifyError> for String
source§fn from(err: EcVerifyError) -> Self
fn from(err: EcVerifyError) -> Self
Converts to this type from the input type.
source§impl From<Error> for EcVerifyError
Available on crate feature ec25519
only.
impl From<Error> for EcVerifyError
Available on crate feature
ec25519
only.source§impl PartialEq for EcVerifyError
impl PartialEq for EcVerifyError
source§fn eq(&self, other: &EcVerifyError) -> bool
fn eq(&self, other: &EcVerifyError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EcVerifyError
impl StructuralPartialEq for EcVerifyError
Auto Trait Implementations§
impl Freeze for EcVerifyError
impl RefUnwindSafe for EcVerifyError
impl Send for EcVerifyError
impl Sync for EcVerifyError
impl Unpin for EcVerifyError
impl UnwindSafe for EcVerifyError
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