pub enum EcdsaError {
Der(DerError),
InvalidOutputLength,
Negative,
IntegerTooLarge,
}Expand description
Errors returned while converting ECDSA signatures to or from DER.
Variants§
Der(DerError)
The DER input was malformed.
InvalidOutputLength
The output buffer length was zero or not a multiple of two.
Negative
An INTEGER encoded a negative value.
IntegerTooLarge
An INTEGER did not fit in the fixed-width output.
Trait Implementations§
Source§impl Clone for EcdsaError
impl Clone for EcdsaError
impl Copy for EcdsaError
Source§impl Debug for EcdsaError
impl Debug for EcdsaError
Source§impl Display for EcdsaError
impl Display for EcdsaError
impl Eq for EcdsaError
Source§impl Error for EcdsaError
impl Error for EcdsaError
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()
Source§impl From<DerError> for EcdsaError
impl From<DerError> for EcdsaError
Source§impl PartialEq for EcdsaError
impl PartialEq for EcdsaError
impl StructuralPartialEq for EcdsaError
Auto Trait Implementations§
impl Freeze for EcdsaError
impl RefUnwindSafe for EcdsaError
impl Send for EcdsaError
impl Sync for EcdsaError
impl Unpin for EcdsaError
impl UnsafeUnpin for EcdsaError
impl UnwindSafe for EcdsaError
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