[−][src]Struct p384::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]
pub const OID: ObjectIdentifier
[src]
impl CheckSignatureBytes for NistP384
[src]
ecdsa
only.pub fn check_signature_bytes(
bytes: &GenericArray<u8, <Self::FieldSize as Add<Self::FieldSize>>::Output>
) -> Result<(), Error>
[src]
bytes: &GenericArray<u8, <Self::FieldSize as Add<Self::FieldSize>>::Output>
) -> Result<(), Error>
impl Clone for NistP384
[src]
impl Compression for NistP384
[src]
pub const COMPRESS_POINTS: bool
[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]
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]
pub fn cmp(&self, other: &NistP384) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<NistP384> for NistP384
[src]
pub fn eq(&self, other: &NistP384) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<NistP384> for NistP384
[src]
pub fn partial_cmp(&self, other: &NistP384) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[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
impl RefUnwindSafe for NistP384
[src]
impl Send for NistP384
[src]
impl Sync for NistP384
[src]
impl Unpin for NistP384
[src]
impl UnwindSafe for NistP384
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,