[][src]Enum pgp::crypto::ecc_curve::ECCCurve

pub enum ECCCurve {
    Curve25519,
    Ed25519,
    P256,
    P384,
    P521,
    BrainpoolP256r1,
    BrainpoolP384r1,
    BrainpoolP512r1,
    Secp256k1,
}

Variants

Curve25519
Ed25519
P256
P384
P521
BrainpoolP256r1
BrainpoolP384r1
BrainpoolP512r1
Secp256k1

Methods

impl ECCCurve[src]

pub fn name(&self) -> &str[src]

Standard name

pub fn oid_str(&self) -> &str[src]

IETF formatted OID

pub fn nbits(&self) -> u16[src]

Nominal bit length of the curve

pub fn alias(&self) -> Option<&str>[src]

Alternative name of the curve

pub fn pubkey_algo(&self) -> Option<PublicKeyAlgorithm>[src]

Required algo, or None for ECDSA/ECDH

pub fn oid(&self) -> Vec<u8>[src]

Trait Implementations

impl Clone for ECCCurve[src]

impl Eq for ECCCurve[src]

impl PartialEq<ECCCurve> for ECCCurve[src]

impl ToString for ECCCurve[src]

impl Debug for ECCCurve[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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> 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> Same<T> for T

type Output = T

Should always be Self

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

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