#[repr(i32)]
pub enum EcdsaSignatureEncoding {
UnknownEncoding,
IeeeP1363,
Der,
}
Variants
UnknownEncoding
IeeeP1363
The signature’s format is r || s, where r and s are zero-padded and have the same size in bytes as the order of the curve. For example, for NIST P-256 curve, r and s are zero-padded to 32 bytes.
Der
The signature is encoded using ASN.1 (https://tools.ietf.org/html/rfc5480#appendix-A): ECDSA-Sig-Value :: = SEQUENCE { r INTEGER, s INTEGER }
Implementations
Trait Implementations
sourceimpl Clone for EcdsaSignatureEncoding
impl Clone for EcdsaSignatureEncoding
sourcefn clone(&self) -> EcdsaSignatureEncoding
fn clone(&self) -> EcdsaSignatureEncoding
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EcdsaSignatureEncoding
impl Debug for EcdsaSignatureEncoding
sourceimpl Default for EcdsaSignatureEncoding
impl Default for EcdsaSignatureEncoding
sourcefn default() -> EcdsaSignatureEncoding
fn default() -> EcdsaSignatureEncoding
Returns the “default value” for a type. Read more
sourceimpl From<EcdsaSignatureEncoding> for i32
impl From<EcdsaSignatureEncoding> for i32
sourcefn from(value: EcdsaSignatureEncoding) -> i32
fn from(value: EcdsaSignatureEncoding) -> i32
Converts to this type from the input type.
sourceimpl Hash for EcdsaSignatureEncoding
impl Hash for EcdsaSignatureEncoding
sourceimpl Ord for EcdsaSignatureEncoding
impl Ord for EcdsaSignatureEncoding
sourceimpl PartialOrd<EcdsaSignatureEncoding> for EcdsaSignatureEncoding
impl PartialOrd<EcdsaSignatureEncoding> for EcdsaSignatureEncoding
sourcefn partial_cmp(&self, other: &EcdsaSignatureEncoding) -> Option<Ordering>
fn partial_cmp(&self, other: &EcdsaSignatureEncoding) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for EcdsaSignatureEncoding
impl Eq for EcdsaSignatureEncoding
impl StructuralEq for EcdsaSignatureEncoding
impl StructuralPartialEq for EcdsaSignatureEncoding
Auto Trait Implementations
impl RefUnwindSafe for EcdsaSignatureEncoding
impl Send for EcdsaSignatureEncoding
impl Sync for EcdsaSignatureEncoding
impl Unpin for EcdsaSignatureEncoding
impl UnwindSafe for EcdsaSignatureEncoding
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more