[][src]Struct p384::NistP384

pub struct NistP384;

NIST P-384 elliptic curve.

This curve is also known as secp384r1 (SECG) and is specified in FIPS 186-4: Digital Signature Standard (DSS):

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

It's included in the US National Security Agency's "Suite B" and is widely used in protocols like TLS and the associated X.509 PKI.

Its equation is y² = x³ - 3x + b over a ~384-bit prime field where b is the "verifiably random"† constant:

b = 2758019355995970587784901184038904809305690585636156852142
    8707301988689241309860865136260764883745107765439761230575

NOTE: the specific origins of this constant have never been fully disclosed (it is the SHA-1 digest of an inexplicable NSA-selected constant)

Trait Implementations

impl AlgorithmParameters for NistP384[src]

impl CheckSignatureBytes for NistP384[src]

This is supported on crate feature ecdsa only.

impl Clone for NistP384[src]

impl Compression for NistP384[src]

impl Curve for NistP384[src]

impl Curve for NistP384[src]

type FieldSize = U48

384-bit (48-byte)

impl Debug for NistP384[src]

impl Default for NistP384[src]

impl DigestPrimitive for NistP384[src]

This is supported on crate features ecdsa and sha384 only.

type Digest = Sha384

Preferred digest to use when computing ECDSA signatures for this elliptic curve. This should be a member of the SHA-2 family. Read more

impl Eq for NistP384[src]

impl Ord for NistP384[src]

impl PartialEq<NistP384> for NistP384[src]

impl PartialOrd<NistP384> for NistP384[src]

impl SecretValue for NistP384[src]

type Secret = SecretBytes

Inner secret value. Read more

pub fn from_secret_bytes(bytes: &FieldBytes) -> Option<SecretBytes>[src]

Parse the secret value from bytes

impl StructuralEq for NistP384[src]

impl StructuralPartialEq for NistP384[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.