#[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§
source§impl EcdsaSignatureEncoding
impl EcdsaSignatureEncoding
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for EcdsaSignatureEncoding
impl Clone for EcdsaSignatureEncoding
source§fn clone(&self) -> EcdsaSignatureEncoding
fn clone(&self) -> EcdsaSignatureEncoding
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 EcdsaSignatureEncoding
impl Debug for EcdsaSignatureEncoding
source§impl Default for EcdsaSignatureEncoding
impl Default for EcdsaSignatureEncoding
source§fn default() -> EcdsaSignatureEncoding
fn default() -> EcdsaSignatureEncoding
Returns the “default value” for a type. Read more
source§impl From<EcdsaSignatureEncoding> for i32
impl From<EcdsaSignatureEncoding> for i32
source§fn from(value: EcdsaSignatureEncoding) -> i32
fn from(value: EcdsaSignatureEncoding) -> i32
Converts to this type from the input type.
source§impl Hash for EcdsaSignatureEncoding
impl Hash for EcdsaSignatureEncoding
source§impl Ord for EcdsaSignatureEncoding
impl Ord for EcdsaSignatureEncoding
source§fn cmp(&self, other: &EcdsaSignatureEncoding) -> Ordering
fn cmp(&self, other: &EcdsaSignatureEncoding) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<EcdsaSignatureEncoding> for EcdsaSignatureEncoding
impl PartialEq<EcdsaSignatureEncoding> for EcdsaSignatureEncoding
source§fn eq(&self, other: &EcdsaSignatureEncoding) -> bool
fn eq(&self, other: &EcdsaSignatureEncoding) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EcdsaSignatureEncoding> for EcdsaSignatureEncoding
impl PartialOrd<EcdsaSignatureEncoding> for EcdsaSignatureEncoding
source§fn partial_cmp(&self, other: &EcdsaSignatureEncoding) -> Option<Ordering>
fn partial_cmp(&self, other: &EcdsaSignatureEncoding) -> Option<Ordering>
1.0.0 · source§fn 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