[][src]Enum signatory::ecdsa::curve::WeierstrassCurveKind

pub enum WeierstrassCurveKind {
    NistP256,
    NistP384,
    Secp256k1,
}

Types of Weierstrass curves known to this library

Variants

NistP256

The NIST P-256 (a.k.a. prime256v1, secp256r1) elliptic curve defined in FIPS 186-4: Digital Signature Standard (DSS).

https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-4.pdf

NistP384

The NIST P-384 (a.k.a. secp384r1) elliptic curve defined in FIPS 186-4: Digital Signature Standard (DSS).

https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-4.pdf

Secp256k1

The secp256k1 elliptic curve as defined by Certicom's SECG in SEC 2: Recommended Elliptic Curve Domain Parameters.

http://www.secg.org/sec2-v2.pdf

Methods

impl WeierstrassCurveKind[src]

pub fn to_str(self) -> &'static str[src]

Get the string identifier for this elliptic curve. This name matches the Signatory module name for this curve.

pub fn to_secg_name(self) -> Option<&'static str>[src]

Get the SECG identifier name for this particular elliptic curve (if applicable).

Trait Implementations

impl PartialEq<WeierstrassCurveKind> for WeierstrassCurveKind[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Eq for WeierstrassCurveKind[src]

impl Hash for WeierstrassCurveKind[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for WeierstrassCurveKind[src]

impl FromStr for WeierstrassCurveKind[src]

type Err = Error

The associated error which can be returned from parsing.

impl Copy for WeierstrassCurveKind[src]

impl Clone for WeierstrassCurveKind[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> Same<T> for T

type Output = T

Should always be Self