Struct p384::NistP384

source ·
pub struct NistP384;
Expand description

NIST P-384 elliptic curve.

Trait Implementations§

Elliptic curve point in affine coordinates.
The OID associated with this type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

384-bit integer type used for internally representing field elements.

Order of NIST P-384’s elliptic curve group (i.e. scalar modulus).

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Preferred digest to use when computing ECDSA signatures for this elliptic curve. This is typically a member of the SHA-2 family.
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

NIST P-384 points are typically uncompressed.

NIST P-384 points are typically uncompressed.

Prime order elliptic curve group.

a = -3 (0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc)

b = b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef

Base point of P-384.

Defined in FIPS 186-4 § D.1.2.4:

Gₓ = aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98
     59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7
Gᵧ = 3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c
     e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f

NOTE: coordinate field elements have been translated into the Montgomery domain.

Base field element type.
Zero element of the base field.
Multiplicative identity of the base field.
Elliptic curve point in projective coordinates. Read more
Scalar field type. Read more
Try to sign the prehashed message. Read more
Verify the prehashed message against the provided signature Read more
Available on crate feature digest only.
Verify message digest against the provided signature.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Get the OID associated with this value.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.